hi! ??????flink 1.13.1??????????sql????hive???????????????????????????????????????????????????????????? ??????????hive 2.3.6??????????flink-sql-connector-hive-2.3.6????????
package com.meritdata.cloud.flink.test; import org.apache.flink.table.api.EnvironmentSettings; import org.apache.flink.table.api.TableEnvironment; public class Test { public static void main(String[] args) { EnvironmentSettings bbSettings = EnvironmentSettings.newInstance().useBlinkPlanner().inBatchMode().build(); TableEnvironment tableEnvironment = TableEnvironment.create(bbSettings); tableEnvironment.executeSql("create catalog myhive with (" + " 'type' = 'hive', " + " 'default-database' = 'default', " + ")"); tableEnvironment.executeSql("use catalog myhive"); tableEnvironment.executeSql("create table if not exists q1 " + "( id string ) " + "with ('is_generic' = 'false')"); /** * hive????????????????????, ???????? * desc formatted q1; * * col_name data_type comment * * * Table Parameters: * flink.is_generic false * flink.schema.0.data-type VARCHAR(2147483647) * flink.schema.0.name id * transient_lastDdTime 1627279802 * */ } }