Remove support for array
function and only support array[]
style postgres syntax
#3115
Labels
enhancement
New feature or request
Is your feature request related to a problem or challenge? Please describe what you are trying to do.
In apache/datafusion-sqlparser-rs#566, @MazterQyou is adding some more sophisticated support for
array
parsing in SQL and it turns out that postgres treats the thearray
keyword specially so it can't be a functionDatafusion already has support for the equivalent array creation using the postgres syntax
array[]
(note the brackets):Describe the solution you'd like
I propose removing support for
select array(1,2)
syntax to conform with posgres:Describe alternatives you've considered
Do something special with parser
Additional context
This change will likely be required when we update to the next change of sqlparser: apache/datafusion-sqlparser-rs#566
The text was updated successfully, but these errors were encountered: