hddong commented on a change in pull request #1912:
URL: https://github.com/apache/incubator-kyuubi/pull/1912#discussion_r806885436
##########
File path:
externals/kyuubi-trino-engine/src/test/scala/org/apache/kyuubi/engine/trino/operation/TrinoOperationSuite.scala
##########
@@ -45,6 +46,62 @@ class TrinoOperationSuite extends WithTrinoEngine with
HiveJDBCTestHelper {
override protected def jdbcUrl: String = getJdbcUrl
+ test("trino - get type info") {
+ withJdbcStatement() { statement =>
+ val typeInfo = statement.getConnection.getMetaData.getTypeInfo
+ val types = Array(
Review comment:
Shall we use Set?
##########
File path:
externals/kyuubi-trino-engine/src/test/scala/org/apache/kyuubi/engine/trino/operation/TrinoOperationSuite.scala
##########
@@ -45,6 +46,62 @@ class TrinoOperationSuite extends WithTrinoEngine with
HiveJDBCTestHelper {
override protected def jdbcUrl: String = getJdbcUrl
+ test("trino - get type info") {
+ withJdbcStatement() { statement =>
+ val typeInfo = statement.getConnection.getMetaData.getTypeInfo
+ val types = Array(
+ BIGINT,
+ INTEGER,
+ SMALLINT,
+ TINYINT,
+ BOOLEAN,
+ DATE,
+ DECIMAL,
+ REAL,
+ DOUBLE,
+ HYPER_LOG_LOG,
+ QDIGEST,
+ P4_HYPER_LOG_LOG,
+ INTERVAL_DAY_TO_SECOND,
+ INTERVAL_YEAR_TO_MONTH,
+ TIMESTAMP,
+ TIME_WITH_TIME_ZONE,
+ TIME,
+ TIME_WITH_TIME_ZONE,
+ VARBINARY,
+ VARCHAR,
+ CHAR,
+ ROW,
+ ARRAY,
+ MAP,
+ JSON,
+ IPADDRESS,
+ UUID,
+ GEOMETRY,
+ SPHERICAL_GEOGRAPHY,
+ BING_TILE,
+ "color",
+ "KdbTree",
+ "CodePoints",
+ "JsonPath",
+ "Regressor",
+ "JoniRegExp",
+ "unknown",
+ "ObjectId",
+ "SetDigest",
+ "Re2JRegExp",
+ "Model",
+ "tdigest",
+ "LikePattern",
+ "timestamp with time zone",
Review comment:
TIMESTAMP_WITH_TIME_ZONE?
##########
File path:
externals/kyuubi-trino-engine/src/test/scala/org/apache/kyuubi/engine/trino/operation/TrinoOperationSuite.scala
##########
@@ -45,6 +46,62 @@ class TrinoOperationSuite extends WithTrinoEngine with
HiveJDBCTestHelper {
override protected def jdbcUrl: String = getJdbcUrl
+ test("trino - get type info") {
+ withJdbcStatement() { statement =>
+ val typeInfo = statement.getConnection.getMetaData.getTypeInfo
+ val types = Array(
+ BIGINT,
+ INTEGER,
+ SMALLINT,
+ TINYINT,
+ BOOLEAN,
+ DATE,
+ DECIMAL,
+ REAL,
+ DOUBLE,
+ HYPER_LOG_LOG,
+ QDIGEST,
+ P4_HYPER_LOG_LOG,
+ INTERVAL_DAY_TO_SECOND,
+ INTERVAL_YEAR_TO_MONTH,
+ TIMESTAMP,
+ TIME_WITH_TIME_ZONE,
+ TIME,
+ TIME_WITH_TIME_ZONE,
Review comment:
Duplicate with line 68
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]