Releases: xnuinside/simple-ddl-parser
v1.0.3 Fixed bug with `CREATE OR REPLACE SCHEMA` & some more
v1.0.3
Improvements
- Fixed bug with
CREATE OR REPLACE SCHEMA. - Added support of create empty tables without columns CREATE TABLE tablename (); (valid syntax in SQL)
Snowflake
- Fixed bug with snowflake
stage_fileformat option value equal a single string asFIELD_OPTIONALLY_ENCLOSED_BY = '\"',FIELD_DELIMITER = '|' - improve snowflake fileformat key equals value into dict. type.
v1.0.2 Snowflake, MySQL, and other small improvements release
Improvements
- Fixed bug with places first table property value in 'authorization' key. Now it is used real property name.
- Fixed typo on Databricks dialect
- improved equals symbols support within COMMENT statement.
- turn regexp into functions
MySQL Improvements
- UNSIGNED property after int parsed validly now
Snowflake
- Snowflake TAG now available on SCHEMA definitions.
v1.0.1 `normalize_names=True` improvements
v1.0.1
Minor Fixes
- When using
normalize_names=Truedo not remove[]from types likedecimal(21)[]. - When using
normalize_names=Trueensure that"complex"."type"style names convert tocomplex.type.
1.0.0 Major release with output updates
v1.0.0
In output structure was done important changes that can in theory breaks code.
Important changes
- Important change:
all custom table properties that are defined after column definition in 'CREATE TABLE' statement and relative to only one dialect (only for SparkSQL, or HQL,etc), for example, like here:
https://github.com/xnuinside/simple-ddl-parser/blob/main/tests/dialects/test_snowflake.py#L767 or https://github.com/xnuinside/simple-ddl-parser/blob/main/tests/dialects/test_spark_sql.py#L133 will be saved now in property table_properties as dict.
Previously they was placed on same level of table output as columns, alter, etc. Now, they grouped and moved to key table_properties.
- Formatting parser result now represented by 2 classes - Output & TableData, that makes it more strict and readable.
And more.
Full Changelog of version 1.0.0: https://github.com/xnuinside/simple-ddl-parser/blob/main/CHANGELOG.txt#L1
v0.32.0 ALTER DROP, ADD, MODIFY, RENAME, etc statements support
v0.32.0
Improvements
- Added support for several ALTER statements (ADD, DROP, RENAME, etc) - #215
In 'alter' output added several keys:- 'dropped_columns' - to store information about columns that was in table, but after dropped by alter
- 'renamed_columns' - to store information about columns that was renamed
- 'modified_columns' - to track alter column changes for defaults, datetype, etc. Argument stores previous columns states.
Fixes
- Include source column names in FOREIGN KEY references. Fix for: #196
- ALTER statement now will be parsed correctly if names & schemas written differently in
create tablestatement and alter.
For example, if in create table you use quotes like "schema_name"."table_name", but in alter was schema_name.table_name - previously it didn't work, but now parser understand that it is the same table.
v0.31.3 - Snowflake Statements & other Improvements
v0.31.3
Improvements
Snowflake update:
- Added support for Snowflake Virtual Column definition in External Column
AS ()statement - #218 - enforce support for Snowflake _FILE_FORMAT options in External Column ddl statement - #221
Others
- Support for KEY statement in CREATE TABLE statements. KEY statements will now create INDEX entries in the DDL parser.
Big-big thanks for contribution goes to https://github.com/dmaresma and https://github.com/cfhowes
Snowflake improvements
v0.31.2
Improvements
Snowflake update:
- Added support for Snowflake AUTOINCREMENT | IDENTITY column definitions with optional parameter
ORDER|NOORDERstatement - #213
Common
- Added param 'encoding' to parse_from_file function - #142.
Default encoding is utf-8.
Thanks to https://github.com/dmaresma for contributions.
0.31.1 - Snowflake Improvements
Improvements
Snowflake updates:
- Support multiple tag definitions in a single
WITH TAGstatement. - Added support for Snowflake double single quotes - #208