We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3b5fe0 commit 1acc4ebCopy full SHA for 1acc4eb
cmd/root.go
@@ -229,7 +229,11 @@ octosql "SELECT * FROM plugins.plugins"`,
229
if err != nil {
230
return fmt.Errorf("couldn't parse query: %w", err)
231
}
232
- logicalPlan, outputOptions, err := parser.ParseNode(statement.(sqlparser.SelectStatement))
+ selectStmt, ok := statement.(sqlparser.SelectStatement)
233
+ if !ok {
234
+ return fmt.Errorf("only SELECT statements are supported")
235
+ }
236
+ logicalPlan, outputOptions, err := parser.ParseNode(selectStmt)
237
238
239
0 commit comments