jingli430 opened a new issue, #4640: URL: https://github.com/apache/iceberg/issues/4640
``` spark-sql --packages org.apache.iceberg:iceberg-spark-runtime:0.13.1 \ --conf spark.sql.catalog.hive_prod=org.apache.iceberg.spark.SparkCatalog \ --conf spark.sql.catalog.hive_prod.type=hive \ --conf spark.sql.catalog.hive_prod.uri=thrift://emr-header-1.cluster-187694:9083 \ --conf spark.sql.catalog.hadoop_prod=org.apache.iceberg.spark.SparkCatalog \ --conf spark.sql.catalog.hadoop_prod.type=hadoop \ --conf spark.sql.catalog.hadoop_prod.warehouse=oss://xmotors-warehouse/iceberg_dev \ --conf spark.sql.catalog.spark_catalog=org.apache.iceberg.spark.SparkSessionCatalog \ --conf spark.sql.catalog.spark_catalog.type=hive ``` when creating table in spark2.4 using spark-sql shell as above, I got same error for both hiveCatalog and hadoopCatalog. ``` spark-sql> CREATE TABLE hive_prod.default.test_iceberg (id bigint, data string) USING iceberg; Error in query: mismatched input '.' expecting <EOF>(line 1, pos 30) == SQL == CREATE TABLE hive_prod.default.test_iceberg (id bigint, data string) USING iceberg ------------------------------^^^ spark-sql> CREATE TABLE hadoop_prod.default.test_iceberg (id bigint, data string) USING iceberg; Error in query: mismatched input '.' expecting <EOF>(line 1, pos 32) == SQL == CREATE TABLE hadoop_prod.default.test_iceberg (id bigint, data string) USING iceberg --------------------------------^^^ ``` But it works when I was doing it in Spark3 with shell as below. ``` spark-sql --packages org.apache.iceberg:iceberg-spark-runtime-3.2_2.12:0.13.1 \ --conf spark.sql.extensions=org.apache.iceberg.spark.extensions.IcebergSparkSessionExtensions \ --conf spark.sql.catalog.hive_prod=org.apache.iceberg.spark.SparkCatalog \ --conf spark.sql.catalog.hive_prod.type=hive \ --conf spark.sql.catalog.hive_prod.uri=thrift://emr-header-1.cluster-285416:9083 \ --conf spark.sql.catalog.hadoop_prod=org.apache.iceberg.spark.SparkCatalog \ --conf spark.sql.catalog.hadoop_prod.type=hadoop \ --conf spark.sql.catalog.hadoop_prod.warehouse=oss://xmotors-warehouse/iceberg_dev \ --conf spark.sql.catalog.spark_catalog=org.apache.iceberg.spark.SparkSessionCatalog \ --conf spark.sql.catalog.spark_catalog.type=hive ``` -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
