Re: Aggregate functions on collections, collection functions and MAXWRITETIME

2022-12-08 Thread Avi Kivity via dev
IMO it's wrong to change an aggregate's meaning from "aggregate across GROUPs or entire SELECT" to "aggregate within column". Aggregation is long established in SQL and it will just confuse experienced database users. PostgresQL maintains the meaning of max: CREATE TABLE tab (     x int[] );

Re: [DISCUSS] CEP-20: Dynamic Data Masking

2022-08-30 Thread Avi Kivity via dev
Agree with views, or alternatively, column permissions together with computed columns: CREATE TABLE foo (   id int PRIMARY KEY,   unmasked_name text,   name text GENERATED ALWAYS AS some_mask_function(text, 'xxx', 7) ) (syntax from postgresql) GRANT SELECT ON foo.name TO general_use;

Re: CEP-15 multi key transaction syntax

2022-08-22 Thread Avi Kivity via dev
: The replies got trashed pretty badly in the responses. When you say: "Agree it's better to reuse existing syntax than invent new syntax." Which syntax are you referring to? Patrick On Mon, Aug 22, 2022 at 1:36 AM Avi Kivity via dev wrote: Agree it's better to reuse existing s

Re: CEP-15 multi key transaction syntax

2022-08-22 Thread Avi Kivity via dev
Agree it's better to reuse existing syntax than invent new syntax. On 8/21/22 16:52, Konstantin Osipov wrote: * Avi Kivity via dev [22/08/14 15:59]: MySQL supports SELECT INTO FROM ... WHERE ... PostgreSQL supports pretty much the same syntax. Maybe instead of LET use the ANSI/MySQL

Re: [Proposal] add pull request template

2022-08-18 Thread Avi Kivity via dev
On 18/08/2022 18.46, Mick Semb Wever wrote: Until IDEs auto cross-reference JIRA, I'm going to lightly touch the lid of Pandora's Box here and walk away slowly. It drives me *nuts* when I'm git blaming a file to understand the context of why a change was made (to make sure I

Re: CEP-15 multi key transaction syntax

2022-08-14 Thread Avi Kivity via dev
, d)) = SELECT a, b, someTuple FROM.. IF a > 1 AND d > 1… I think this can be safely deferred. Most people would again separate it into separate LETs. I'd add (to the specification) that LETs cannot override a previously defined variable, just to reduce ambiguity. On 14 Aug 2

Re: CEP-15 multi key transaction syntax

2022-08-14 Thread Avi Kivity via dev
On 14/08/2022 01.29, Benedict Elliott Smith wrote:  I’ll do my best to express with my thinking, as well as how I would explain the feature to a user. My mental model for LET statements is that they are simply SELECT statements where the columns that are selected become variables