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 testNumeric.
@Test
public void testNumeric() {
SqlTypeName tn = SqlTypeName.getNameForJdbcType(Types.NUMERIC);
assertEquals("NUMERIC did not map to DECIMAL", SqlTypeName.DECIMAL, 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 testLongvarchar.
@Test
public void testLongvarchar() {
SqlTypeName tn = SqlTypeName.getNameForJdbcType(Types.LONGVARCHAR);
assertEquals("LONGVARCHAR 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 testNclob.
@Test
public void testNclob() {
SqlTypeName tn = SqlTypeName.getNameForJdbcType(ExtraSqlTypes.NCLOB);
// NCLOB not supported yet
assertEquals("NCLOB 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 testTimestamp.
@Test
public void testTimestamp() {
SqlTypeName tn = SqlTypeName.getNameForJdbcType(Types.TIMESTAMP);
assertEquals("TIMESTAMP did not map to TIMESTAMP", SqlTypeName.TIMESTAMP, 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 testLongnvarchar.
@Test
public void testLongnvarchar() {
SqlTypeName tn = SqlTypeName.getNameForJdbcType(ExtraSqlTypes.LONGNVARCHAR);
// LONGNVARCHAR not supported yet
assertEquals("LONGNVARCHAR maps to non-null type", null, tn);
}
Aggregations