首页 > 其他 > 详细

hint 说明

时间:2021-01-06 13:59:39      阅读:32      评论:0      收藏:0      [点我收藏+]
spark.sql(
    "select /*+ mapjoin(b)  */ "
    "* from t1 a left join t2 b on a.id=b.id"
).explain()

1:当表有别名时,需要hint的是表的别名;
2:hint的关键字(例如本例中的:mapjoin),大小写都可以识别。

 

hint 说明

原文:https://www.cnblogs.com/muyue123/p/14240110.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!