-
我创建了表也是提示表不存在 |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
你好,调用的代码和报错的信息可以发一下么? |
Beta Was this translation helpful? Give feedback.
-
Exception in thread "main" org.apache.spark.sql.AnalysisException: Table s3://ccf-datalake-contest/datalake_table doesn't exist. spark.sql(
|
Beta Was this translation helpful? Give feedback.
-
需要指定path,表会在指定path中存储数据,是不是漏掉了
也可以使用dataframe这种方式建表 |
Beta Was this translation helpful? Give feedback.
-
使用 SQL 建表时,默认的路径是 spark.sql.warehouse.dir 这个配置指定的,默认是当前运行本地目录下的 spark-warehouse 子目录。可以使用 path 选项或者 LOCATION 语法指定路径。 |
Beta Was this translation helpful? Give feedback.
需要指定path,表会在指定path中存储数据,是不是漏掉了
也可以使用dataframe这种方式建表
代码案例可以参考如下case
https://github.com/meta-soul/LakeSoul/blob/main/lakesoul-spark/src/test/scala/org/apache/spark/sql/lakesoul/DDLSuite.scala
https://github.com/meta-soul/LakeSoul/blob/main/lakesoul-spark/src/test/scala/org/apache/spark/sql/lakesoul/TableCreationTests.scala