mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-07-07 17:04:59 +00:00
Docs: Add an example to clarify semantic analysis (#739)
This commit is contained in:
parent
e22aa78315
commit
b17c44a64a
1 changed files with 10 additions and 3 deletions
13
README.md
13
README.md
|
@ -14,9 +14,16 @@ foundation for vendor-specific parsers.
|
|||
This parser is currently being used by the [DataFusion] query engine,
|
||||
[LocustDB], [Ballista] and [GlueSQL].
|
||||
|
||||
This parser is used as a syntax analyzer. We don't intend to have more semantic logic because it varies drastically
|
||||
between dialects, the same is true for projects like compilers. If you want to do semantic analysis, feel free to use
|
||||
this project as a base
|
||||
This crate provides only a syntax parser, and tries to avoid applying
|
||||
any SQL semantics, and accepts queries that specific databases would
|
||||
reject, even when using that Database's specific `Dialect`. For
|
||||
example, `CREATE TABLE(x int, x int)` is accepted by this crate, even
|
||||
though most SQL engines will reject this statement due to the repeated
|
||||
column name `x`.
|
||||
|
||||
This crate avoids semantic analysis because it varies drastically
|
||||
between dialects and implementations. If you want to do semantic
|
||||
analysis, feel free to use this project as a base
|
||||
|
||||
## Example
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue