Hi The pinot docs gives a command to query using P...
# troubleshooting
s
Hi The pinot docs gives a command to query using Pinot CLI commands Why am i getting the following error
picocli.CommandLine$UnmatchedArgumentException: Unknown options: '-queryType', 'sql'
at picocli.CommandLine$Interpreter.validateConstraints(CommandLine.java:13143) ~[pinot-all-1.0.0-jar-with-dependencies.jar:1.0.0-b6bdf6c9686b286a149d2d1aea4a385ee98f3e79]
at picocli.CommandLine$Interpreter.parse(CommandLine.java:13095) ~[pinot-all-1.0.0-jar-with-dependencies.jar:1.0.0-b6bdf6c9686b286a149d2d1aea4a385ee98f3e79]
at picocli.CommandLine$Interpreter.processSubcommand(CommandLine.java:13343) ~[pinot-all-1.0.0-jar-with-dependencies.jar:1.0.0-b6bdf6c9686b286a149d2d1aea4a385ee98f3e79]
at picocli.CommandLine$Interpreter.processArguments(CommandLine.java:13260) ~[pinot-all-1.0.0-jar-with-dependencies.jar:1.0.0-b6bdf6c9686b286a149d2d1aea4a385ee98f3e79]
at picocli.CommandLine$Interpreter.parse(CommandLine.java:13072) ~[pinot-all-1.0.0-jar-with-dependencies.jar:1.0.0-b6bdf6c9686b286a149d2d1aea4a385ee98f3e79]
at picocli.CommandLine$Interpreter.parse(CommandLine.java:13041) ~[pinot-all-1.0.0-jar-with-dependencies.jar:1.0.0-b6bdf6c9686b286a149d2d1aea4a385ee98f3e79]
at picocli.CommandLine$Interpreter.parse(CommandLine.java:12942) ~[pinot-all-1.0.0-jar-with-dependencies.jar:1.0.0-b6bdf6c9686b286a149d2d1aea4a385ee98f3e79]
at picocli.CommandLine.parseArgs(CommandLine.java:1478) ~[pinot-all-1.0.0-jar-with-dependencies.jar:1.0.0-b6bdf6c9686b286a149d2d1aea4a385ee98f3e79]
at org.apache.pinot.tools.admin.PinotAdministrator.execute(PinotAdministrator.java:159) [pinot-all-1.0.0-jar-with-dependencies.jar:1.0.0-b6bdf6c9686b286a149d2d1aea4a385ee98f3e79]
at org.apache.pinot.tools.admin.PinotAdministrator.main(PinotAdministrator.java:202) [pinot-all-1.0.0-jar-with-dependencies.jar:1.0.0-b6bdf6c9686b286a149d2d1aea4a385ee98f3e79].
I am running the following command ./pinot-admin.sh PostQuery -brokerHost localhost -brokerPort 8000 -queryType sql -query "SELECT * FROM testsignupinfo LIMIT 3"
b
Hello Sharon. It seems that -queryType option is obsolete so please try running the command without it :
Copy code
./pinot-admin.sh PostQuery  -brokerHost localhost -brokerPort 8000 -query "SELECT * FROM testsignupinfo LIMIT 3"
y
PQL was deprecated and removed over 2 years ago (https://github.com/apache/pinot/pull/8626). The documentation is outdated and I'll update it today.
s
Sure Bolek
Thanks @Yash Mayya