News for hackers. Stuff that matters.
Re:ZetaSQL – A SQL Analyzer Framework from Google by gauravphoenix on Tuesday May 21, 2019 @06:58PM (#19975999)
It is somewhat similar to https://calcite.apache.org/ which I like quite a lot. The calcite documentation is top notch as opposed to a bunch of MDs in a directory providing no coherent flow of information.
Re:ZetaSQL – A SQL Analyzer Framework from Google by michaelmior on Wednesday May 22, 2019 @07:56AM (#19980157)
There will hopefully be some integration with Calcite in the future. The ZetaSQL team has been in discussion about this on our mailing list :)
Re:ZetaSQL – A SQL Analyzer Framework from Google by dc_gregory on Tuesday May 21, 2019 @07:51PM (#19976329)

    We will also be releasing more documentation over time,
    particular related to developing engines with this framework.
Looks like they intend to resolve that.
Re:ZetaSQL – A SQL Analyzer Framework from Google by midasz on Wednesday May 22, 2019 @05:08AM (#19979299)
The intention is always there
Re:ZetaSQL – A SQL Analyzer Framework from Google by robfig on Tuesday May 21, 2019 @08:48PM (#19976706)
Direct link to the documentation one-pager: https://github.com/google/zetasql/blob/master/docs/one-pager...
Re:ZetaSQL – A SQL Analyzer Framework from Google by bpicolo on Tuesday May 21, 2019 @10:36PM (#19977250)
> 22365 lines (18045 sloc) 599 KB

That is a truly enormous "one-pager". I thought my scroll bar was bugged!

Re:ZetaSQL – A SQL Analyzer Framework from Google by gonyea on Wednesday May 22, 2019 @12:28AM (#19977760)
This is an in-joke at Google.
Re:ZetaSQL – A SQL Analyzer Framework from Google by fizwhiz on Wednesday May 22, 2019 @03:06AM (#19978583)
To elaborate: The spirit of a one-pager isn't to cram everything onto "one page", but rather to have a "single document" that contains all the context/content you need instead of having hyperlinks to large swaths of other documents (doing a depth-first search in documentation at Google can be a huge time-sink).

Source: Another Googler that wastes time on memegen

Re:ZetaSQL – A SQL Analyzer Framework from Google by kkarakk on Wednesday May 22, 2019 @05:38AM (#19979443)
company whose verb has come to mean "to search" has employees who dislike search
Re:ZetaSQL – A SQL Analyzer Framework from Google by hu3 on Wednesday May 22, 2019 @07:07AM (#19979877)
Or maybe they just value an easy-to-use CTRL+F search
Re:ZetaSQL – A SQL Analyzer Framework from Google by gigatexal on Wednesday May 22, 2019 @12:29AM (#19977767)
I might be a bit slow but what is this exactly? Is it something I could add to a data layer and get SQL semantics from?
Re:ZetaSQL – A SQL Analyzer Framework from Google by JulianMorrison on Wednesday May 22, 2019 @08:36AM (#19980453)
SQL parser. Input: text in a standardized SQL dialect, output: a data structure describing what the user wants done.
Re:ZetaSQL – A SQL Analyzer Framework from Google by gigatexal on Wednesday May 22, 2019 @01:21PM (#19983292)
That is really cool. I’ve been looking for this
Re:ZetaSQL – A SQL Analyzer Framework from Google by jve on Wednesday May 22, 2019 @05:24AM (#19979368)
No answer to this question. Also interested.
Re:ZetaSQL – A SQL Analyzer Framework from Google by reilly3000 on Wednesday May 22, 2019 @12:07AM (#19977683)
I have to presume this is in production with the BigQuery web UI. It has brilliant validation and completion, arguably better than Looker. I’d let that framework into my hypothetical SQL UI any old time it likes.
Re:ZetaSQL – A SQL Analyzer Framework from Google by paxys on Tuesday May 21, 2019 @08:12PM (#19976458)
This is neat, although the docs don't say which (if any) SQL standard it follows.
Re:ZetaSQL – A SQL Analyzer Framework from Google by joatmon-snoo on Wednesday May 22, 2019 @12:48AM (#19977862)
Not super sure if it follows any of them, but it might be ANSI 2011, since Cloud Spanner SQL is described as "ANSI 2011 with extensions", and I would expect that to be a strict subset of ZetaSQL.

For some more context, ZetaSQL is the thing we've standardized our internal systems on, aka F1, Dremel/BigQuery, Spanner (and there's a few others). The F1 Query paper makes a light reference to this in S7.2 http://www.vldb.org/pvldb/vol11/p1835-samwel.pdf.

For me, the most valuable feature of it has been that protos are an explicitly defined data type, since we use protos for pretty much everything. Docs: https://github.com/google/zetasql/blob/master/docs/one-pager...

EDIT: BigQuery SQL is described as "compliant with the SQL 2011 standard and has extensions", and I would also expect that to be a strict subset of ZetaSQL.

Re:ZetaSQL – A SQL Analyzer Framework from Google by ma2rten on Tuesday May 21, 2019 @09:19PM (#19976866)
Google has it's own internal SQL dialect. It's the same that is also used in Cloud Spanner. I think it's mostly standard complaint, but less feature complete than the standard sql dialects.
Re:ZetaSQL – A SQL Analyzer Framework from Google by setr on Tuesday May 21, 2019 @08:36PM (#19976618)
I’m pretty sure it wouldn’t follow any; I can’t imagine any significant benefit (if you’re not chasing strict compatibility, general SQL should take you more than far enough on the beginner-friendly front) and significant benefit from doing a custom SQL
Re:ZetaSQL – A SQL Analyzer Framework from Google by paxys on Wednesday May 22, 2019 @12:00AM (#19977647)
A benefit of following an established standard is that one can use this not just to write a new engine but also to build internal tooling (static analysis, linters, IDE tools etc.) for an existing one (e.g. MySQL).
Re:ZetaSQL – A SQL Analyzer Framework from Google by djhaskin987 on Tuesday May 21, 2019 @08:43PM (#19976670)
What significant benefit
Re:ZetaSQL – A SQL Analyzer Framework from Google by davidjnelson on Tuesday May 21, 2019 @08:57PM (#19976755)
Things like late row lookups in mysql that are not an issue in postgres https://explainextended.com/2011/02/11/late-row-lookups-inno...
Re:ZetaSQL – A SQL Analyzer Framework from Google by riffraff on Wednesday May 22, 2019 @04:02AM (#19978952)
aren't both executions (mysqls' and postgresqls') acceptable from an SQL point of view?

I don't think the SQL standard mandates how the DBMS executes the query. In fact, I seem to remember that was on of the purposes of having an high level language.

Re:ZetaSQL – A SQL Analyzer Framework from Google by rkagerer on Wednesday May 22, 2019 @01:50AM (#19978152)
Seeing as this introduces a language, a couple examples on the landing page wouldn't be a bad idea.
Re:ZetaSQL – A SQL Analyzer Framework from Google by blurredlines on Wednesday May 22, 2019 @05:23AM (#19979362)
Does it support Druid as engine? Is it possible to connect it with Metatron Discovery?

https://github.com/metatron-app/metatron-discovery

Re:ZetaSQL – A SQL Analyzer Framework from Google by malkia on Wednesday May 22, 2019 @01:28AM (#19978057)
Wasn't this internally called "GoogleSQL" - sorry was 2 years back, all I remember was switching one syntax to another, and certain things easier in previous syntax, but not well defined, and vice versa...
Re:ZetaSQL – A SQL Analyzer Framework from Google by azurezyq on Wednesday May 22, 2019 @04:44AM (#19979164)
Still using Dremel SQL occasionally and I tend to agree that certain things are easier in Dremel SQL. But it's a canonical example of continuously applying convenient patches making things worse. While something is easier to write, expressing something else becomes impossible. Examples are complicated Protos with multiple layers of repeated/map/struct stuffs...

With Google SQL, it's really verbose but a conceptually coherent design just gives you less surprises.

I'd say I like the latter more.