partiql / partiql-lang

The PartiQL language specification
https://partiql.org/partiql-lang
Other
10 stars 1 forks source link

Define DDL (Data Definition Language) #53

Open vgapeyev opened 1 year ago

vgapeyev commented 1 year ago

A few of the aspects to consider, specific to PartiQL (compared to SQL):

[This list is expected to grow as we understand the matter.]

yliuuuu commented 1 year ago

From a perspective of SQL conformance:

Qualified Table Name

Currently, in the kotlin-implementation. DDL does not support namespace in table name, meaning we can do only CREATE TABLE myTable .... but not CREATE TABLE myCatalog.mySchema.myTable.

We should support variable length namespace when defining DDL, but the definition of what SQL called catalog, schema, should be its own project.

Constraint

Currently, the kotlin implementation support parsing of column constraint (with constraint name):

  1. NOT NULL: The SQL equivalent of declaring a non-null constraint.
  2. NULL: I don't have much context on why this constraint is needed.

Potentially, we need to explore the possibility of adding:

Additional Parts