File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
dialects/presto/src/Database/Sql/Presto
test/Database/Sql/Presto/Parser Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -948,7 +948,7 @@ arrayPrimaryExprP :: Parser (Expr RawNames Range)
948
948
arrayPrimaryExprP = do
949
949
r <- Tok. arrayP
950
950
_ <- Tok. openBracketP
951
- exprs <- exprP `sepBy1 ` Tok. commaP
951
+ exprs <- exprP `sepBy ` Tok. commaP
952
952
r' <- Tok. closeBracketP
953
953
return $ ArrayExpr (r <> r') exprs
954
954
Original file line number Diff line number Diff line change @@ -119,6 +119,7 @@ testParser = test
119
119
, " SELECT CURRENT_TIME(1);"
120
120
, " SELECT CURRENT_DATE;"
121
121
, " SELECT ARRAY[1+1, LOCALTIME];"
122
+ , " SELECT ARRAY[];"
122
123
, " SELECT CAST(NULL AS BIGINT);"
123
124
, " SELECT TRY_CAST(NULL AS BIGINT);"
124
125
, " SELECT TRY_CAST(NULL AS BIGINT ARRAY);"
You can’t perform that action at this time.
0 commit comments