Spark SQL中出现 CROSS JOIN 问题解决

 

1、问题显示如下所示:

    Use the CROSS JOIN syntax to allow cartesian products between these relation

 

2、原因:

     Spark 2.x版本中默认不支持笛卡尔积操作

 

3、解决方案:

     通过参数spark.sql.crossJoin.enabled开启,方式如下:

  spark.conf.set("spark.sql.crossJoin.enabled", "true")

 

相关文章:

  • 2021-05-11
  • 2021-05-17
  • 2021-08-28
猜你喜欢
  • 2021-12-19
  • 2022-12-23
  • 2021-08-30
  • 2021-09-27
  • 2021-09-07
  • 2021-07-24
相关资源
相似解决方案