use of org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.type.SqlTypeName in project calcite by apache.
the class SqlTypeNameTest method testNull.
@Test
public void testNull() {
SqlTypeName tn = SqlTypeName.getNameForJdbcType(Types.NULL);
assertEquals("NULL did not map to null", null, tn);
}
use of org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.type.SqlTypeName in project calcite by apache.
the class SqlTypeNameTest method testRowid.
@Test
public void testRowid() {
SqlTypeName tn = SqlTypeName.getNameForJdbcType(ExtraSqlTypes.ROWID);
// ROWID not supported yet
assertEquals("ROWID maps to non-null type", null, tn);
}
use of org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.type.SqlTypeName in project calcite by apache.
the class SqlTypeNameTest method testInteger.
@Test
public void testInteger() {
SqlTypeName tn = SqlTypeName.getNameForJdbcType(Types.INTEGER);
assertEquals("INTEGER did not map to INTEGER", SqlTypeName.INTEGER, tn);
}
use of org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.type.SqlTypeName in project calcite by apache.
the class SqlTypeNameTest method testFloat.
@Test
public void testFloat() {
SqlTypeName tn = SqlTypeName.getNameForJdbcType(Types.FLOAT);
assertEquals("FLOAT did not map to FLOAT", SqlTypeName.FLOAT, tn);
}
use of org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.type.SqlTypeName in project calcite by apache.
the class SqlTypeNameTest method testClob.
@Test
public void testClob() {
SqlTypeName tn = SqlTypeName.getNameForJdbcType(Types.CLOB);
assertEquals("CLOB did not map to null", null, tn);
}
Aggregations