zetasql
ANTLR

zetasql | ANTLR | |
---|---|---|
21 | 18 | |
2,350 | 17,562 | |
0.3% | 1.0% | |
0.0 | 7.5 | |
3 months ago | 8 days ago | |
C++ | Java | |
Apache License 2.0 | BSD 3-clause "New" or "Revised" License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
zetasql
-
How Pipe Syntax Fix SQL Design Problems
Open-source GoogleSQL implementation, ZetaSQL
-
Google's New Pipe Syntax in SQL
It is, using table-valued functions (TVFs).
There's an example at the bottom of this file:
https://github.com/google/zetasql/blob/master/zetasql/exampl...
-
Pipe Syntax in SQL
ZetaSQL’s docs for the ‘OVER’ keyword you mention: https://github.com/google/zetasql/blob/master/docs/window-fu...
I disagree that the paper not mentioning ‘OVER’ implies that the paper authors secretly think pipe syntax is a bad idea. They probably just wanted to keep the paper concise, or forgot about that one less-used bit of syntax.
Do you think that ‘OVER’ keyword implies something fundamentally wrong about pipe syntax?
-
Mangle, a programming language for deductive database programming
There are even table-valued functions.
These things are not widespread, and differ by implementation, and the way these are used by clients are copy-and-paste. Something as thoughtful as ZetaSQL https://github.com/google/zetasql does not have mechanisms for structuring (modules, packages, interfaces). SQL will not, cannot evolve into such a direction (or, anything that evolves, will not be recognizable as SQL).
-
goccy/bigquery-emulator: BigQuery emulator server implemented in Go
Hi, I develop a BigQuery emulator ( https://github.com/goccy/bigquery-emulator ) from early 2022. It is written in Go, but can be used from bq command line tool and other language's (e.g. Python ) client SDK after installing docker image or released binary. It currently supports over 200 of the nearly 330 standard functions in BigQuery and all data types except GEOGRAPHY ( see https://github.com/goccy/go-zetasqlite#status for details ). ZetaSQL ( https://github.com/google/zetasql ) is used to parse and analyze queries.
- ZetaSQL – Analyzer Framework for SQL
-
ZetaSQL - Question about using local service
We are using a Python client binding for ZetaSQL GRPC local service in our application to analyze statements and extract referenced tables and output columns.
-
Parsing SQL
If you don't want to do it yourself, there's this:
https://github.com/google/zetasql
Parsing is huge but it's amazing how small a part of the job it is. This library isn't even the half of it.
- SQLGlot: SQL parser, transpiler, optimizer – translate to Presto, Spark, Hive
- ZetaSQL - Analyzer Framework for SQL
ANTLR
-
How to develop code analyzer in 48 hours
We've chosen ANTLR v4. The tool is also written in Java, which makes it really easy to use. Over many years of development, it has started to fare very well.
-
Library to parse slash commands with validation?
antlr https://github.com/antlr/antlr4
-
How should I prepare for AI-driven changes in the industry as a Software Engineering Manager
Download the ANTLR jar from https://www.antlr.org/download/antlr-4.9.2-complete.jar Add the ANTLR jar to your project's classpath. Install the ANTLR Kotlin target by following the instructions at https://github.com/antlr/antlr4/blob/master/doc/targets/Kotlin.md Next, you'll need a Perl grammar file for ANTLR:
-
ELI5- Why can’t regex parse HTML?
Write a context-free grammar for it, commonly written in Backus Naur Form, and use that to write a parser. There are tools named "parser generators" like antlr4 that can automatically convert a BNF grammar into a parser.
- Error "ImportError: No Module named antlr4
-
MASSIVE help needed on this, using ANTLR4 on Ubuntu and it keeps giving this error when trying to make a parse tree… (it should show up in another window but it gives this instead) I don’t know what to do 😭
Tutorial on using it in Java: https://www.baeldung.com/java-antlr Github project itself with docs and examples: https://github.com/antlr/antlr4
-
Scripting language for Java
Depending on how complex your expressions are, you might consider using something like antlr and writing your own parser for it. Setting up something to handle math and string operations wouldn’t be very hard and then you can control the syntax however you like. You can use a visitor and visit each node in the syntax tree and return the result of each sub-expression.
- SQLite Internals: How the Most Used Database Works
-
sqlfluff VS ANTLR - a user suggested alternative
2 projects | 12 Dec 2022
can be used to parse
-
Bored CS student in my junior year. Give me something to do! (free plugins)
I already posted here about a project, but I could also use help on Mantle. It's a new command framework powered by ANTLR, if that's something you're interested in.
What are some alternatives?
sqlglot - Python SQL Parser and Transpiler
JFlex - The fast scanner generator for Java™ with full Unicode support
Apache Calcite - Apache Calcite
JSqlParser - JSqlParser parses an SQL statement and translate it into a hierarchy of Java classes. The generated hierarchy can be navigated using the Visitor Pattern
proleap-cobol-parser - ProLeap ANTLR4-based parser for COBOL
sqlparse - A non-validating SQL parser module for Python
lsp-mode - Emacs client/library for the Language Server Protocol
pgsql-parser - PostgreSQL Query Parser for Node.js
alasql - AlaSQL.js - JavaScript SQL database for browser and Node.js. Handles both traditional relational tables and nested JSON data (NoSQL). Export, store, and import data from localStorage, IndexedDB, or Excel.
grammars-v4 - Grammars written for ANTLR v4; expectation that the grammars are free of actions.
