spark sql error mismatched input 'union' expecting { <EOF>,''................................

 给union的前后sql加括号就可以解决

原文地址:https://www.cnblogs.com/shaozhiqi/p/11699782.html