java.lang.unsupportedoperationexception:将sparkDataframe写入mssql表时发生sortmergejoinexec错误

ilmyapht  于 2021-05-26  发布在  Spark
关注(0)|答案(0)|浏览(284)

我正在尝试使用java将sparkDataframe写入mssqldb,下面是代码片段。

DataFrameWriter<Row> dataFrameWriter = data.write().format("jdbc").mode("append")
                    .option(DRIVER, properties.getProperty(DRIVER))
                    .option(URL, properties.getProperty(URL))
                    .option(DATABASE_NAME, properties.getProperty(DATABASE_NAME))
                    .option(DB_TABLE, properties.getProperty(DB_TABLE))
                    .option(USER, properties.getProperty(USER))
                    .option(PASSWORD, properties.getProperty(PASSWORD));

            dataFrameWriter.save();

在dataframewriter.save()行获取以下错误:

java.lang.UnsupportedOperationException: SortMergeJoinExec does not support generating code for Cross JoinTypes

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题