错误 org.apache.pig.tools.grunt.Grunt - 错误 1200:<line 16, column 46> 不匹配的输入“,”期望 LEFT_PAREN

问题描述 投票:0回答:1

grunt> joined_data = JOIN filtered_features BY (store, date), sales BY (store, date);

2024-04-02 13:19:05,110 [主要] 错误 org.apache.pig.tools.grunt.Grunt - 错误 1200: 不匹配的输入 ',' 期待 LEFT_PAREN

日志文件详细信息:/home/vboxuser/Documents/DDPC/EX9/q2/2/pig_1712044037517.log

猪堆栈跟踪


错误 1200:输入“,”不匹配,需要 LEFT_PAREN

解析失败:输入“,”不匹配,需要 LEFT_PAREN

at org.apache.pig.parser.QueryParserDriver.parse(QueryParserDriver.java:244)

at org.apache.pig.parser.QueryParserDriver.parse(QueryParserDriver.java:182)

at org.apache.pig.PigServer$Graph.validateQuery(PigServer.java:1792)

at org.apache.pig.PigServer$Graph.registerQuery(PigServer.java:1765)

at org.apache.pig.PigServer.registerQuery(PigServer.java:708)

at org.apache.pig.tools.grunt.GruntParser.processPig(GruntParser.java:1110)

at org.apache.pig.tools.pigscript.parser.PigScriptParser.parse(PigScriptParser.java:512)

at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:230)

at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:205)

at org.apache.pig.tools.grunt.Grunt.run(Grunt.java:66)

at org.apache.pig.Main.run(Main.java:564)

at org.apache.pig.Main.main(Main.java:175)

at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.base/java.lang.reflect.Method.invoke(Method.java:566)

at org.apache.hadoop.util.RunJar.run(RunJar.java:244)

at org.apache.hadoop.util.RunJar.main(RunJar.java:158)

====================================================== =================================

有括号但还是错误Left Paran

hadoop mapreduce apache-pig
1个回答
0
投票

如果我提到列号,它就会起作用

grunt> join_data = JOIN Filtered_features BY ($0, $2), sales BY ($0, $1);

© www.soinside.com 2019 - 2024. All rights reserved.