Spark DF查询语句报错 extraneous input ''`t`'' expecting {, ',', 'FROM', 'WHERE', 'GROUP', '
在SQLyog测试语句测试是正常的SELECTusername,SUBSTR(DATE,1,13)ASt,COUNT(username)FROMabcGROUPBYusername,t在spark里测试valdf=sqc.createDataFrame(readyData).toDF(“username”,“date”,“ip”,“inbody”,“outbody”)df.registerTemp