我正在使用 Snappydata 运行一些查询,并使用 sql with 语句:
WITH x AS (
SELECT DISTINCT col_a, col_b
FROM table_a
)
INSERT INTO table_b
SELECT x.col_a, x.col_b
FROM x
JOIN table_c c ON x.col_a = c.col_a and x.col_b = c.col_b
此sql代码在本地模式下运行时运行良好,但是当我将编译好的jar文件提交到Snappydata集群时,它会抛出一个错误,说表“APP.X”不存在,
org.apache.spark.sql.TableNotFoundException: Table 'APP.X' not found;
知道为什么会这样吗?