Re: MAP syntax for arrays - Mailing list pgsql-hackers

From Chapman Flack
Subject Re: MAP syntax for arrays
Date
Msg-id 243a499e-5256-9128-9f99-d942dbaea888@anastigmatix.net
Whole thread Raw
In response to Re: MAP syntax for arrays  (Chapman Flack <chap@anastigmatix.net>)
List pgsql-hackers
On 05/08/2018 09:19 AM, Chapman Flack wrote:
> 
> While PostgreSQL certainly has extensions to and divergences from
> standard SQL syntax, some historical and some recent, it seems like
> there ought to be a highish bar for adding new ones; or, looking at it
> another way, has this feature been proposed to the SQL committee?
> It doesn't sound like a bad idea, and supporting new syntax for it
> would be an easier call it if it were known to be in an SQL draft
> somewhere.

There seems to have been some work at Databricks adding higher-order
function syntax to their SQL; they've chosen the name 'transform'
for 'map', and also provided 'exists', 'filter', and 'aggregate'.

https://databricks.com/blog/2017/05/24/working-with-nested-data-using-higher-order-functions-in-sql-on-databricks.html

-Chap


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: cannot drop replication slot if server is running in single-user mode
Next
From: Teodor Sigaev
Date:
Subject: Re: Cast jsonb to numeric, int, float, bool