GlareDB / glaredb

GlareDB: An analytics DBMS for distributed data
https://glaredb.com
GNU Affero General Public License v3.0
550 stars 36 forks source link

feat: support = operator in function args #2905

Closed universalmind303 closed 1 month ago

universalmind303 commented 1 month ago

Now if functions support named args, we can use python style = assignment in the function instead of the lesser known => assignment operator

ex:

# before
select * from read_csv('some_file', delimiter => ';');

# after
select * from read_csv('some_file', delimiter = ';');

Note: the => operator still works.

universalmind303 commented 1 month ago

so it turns out this breaks a lot of generated queries, such as the ones generated from prql. We'd likely need some way to configure this per function. Closing this for now as it's a lot more work than initially intended.