Select: Support Square Bracket Lists (#8457)

Allows for S3 compatible `SELECT * from s3object s WHERE id IN [3,2]`

Fixes #8422
This commit is contained in:
Klaus Post
2019-10-30 07:04:40 +01:00
committed by Nitish Tiwari
parent 1f481c0967
commit 51456e6adc
2 changed files with 17 additions and 1 deletions

View File

@@ -149,7 +149,7 @@ type Expression struct {
// ListExpr represents a literal list with elements as expressions.
type ListExpr struct {
Elements []*Expression `parser:"\"(\" @@ ( \",\" @@ )* \")\""`
Elements []*Expression `parser:"\"(\" @@ ( \",\" @@ )* \")\" | \"[\" @@ ( \",\" @@ )* \"]\""`
}
// AndCondition represents logical conjunction of clauses