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 testNvarchar.
@Test
public void testNvarchar() {
SqlTypeName tn = SqlTypeName.getNameForJdbcType(ExtraSqlTypes.NVARCHAR);
// NVARCHAR not supported yet, currently maps to VARCHAR
assertEquals("NVARCHAR did not map to VARCHAR", SqlTypeName.VARCHAR, 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 testBit.
@Test
public void testBit() {
SqlTypeName tn = SqlTypeName.getNameForJdbcType(Types.BIT);
assertEquals("BIT did not map to BOOLEAN", SqlTypeName.BOOLEAN, 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 testNchar.
@Test
public void testNchar() {
SqlTypeName tn = SqlTypeName.getNameForJdbcType(ExtraSqlTypes.NCHAR);
// NCHAR not supported yet, currently maps to CHAR
assertEquals("NCHAR did not map to CHAR", SqlTypeName.CHAR, 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 testBigint.
@Test
public void testBigint() {
SqlTypeName tn = SqlTypeName.getNameForJdbcType(Types.BIGINT);
assertEquals("BIGINT did not map to BIGINT", SqlTypeName.BIGINT, 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 testSmallint.
@Test
public void testSmallint() {
SqlTypeName tn = SqlTypeName.getNameForJdbcType(Types.SMALLINT);
assertEquals("SMALLINT did not map to SMALLINT", SqlTypeName.SMALLINT, tn);
}
Aggregations