Skip to content

Releases: xnuinside/simple-ddl-parser

1.0.0 Major release with output updates

09 Jan 10:04
41757cb
Compare
Choose a tag to compare

v1.0.0
In output structure was done important changes that can in theory breaks code.

Important changes

  1. 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.

  1. 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

07 Jan 14:35
Compare
Choose a tag to compare

v0.32.0

Improvements

  1. Added support for several ALTER statements (ADD, DROP, RENAME, etc) - #215
    In 'alter' output added several keys:
    1. 'dropped_columns' - to store information about columns that was in table, but after dropped by alter
    2. 'renamed_columns' - to store information about columns that was renamed
    3. 'modified_columns' - to track alter column changes for defaults, datetype, etc. Argument stores previous columns states.

Fixes

  1. Include source column names in FOREIGN KEY references. Fix for: #196
  2. ALTER statement now will be parsed correctly if names & schemas written differently in create table statement 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

05 Jan 20:51
Compare
Choose a tag to compare

v0.31.3

Improvements

Snowflake update:

  1. Added support for Snowflake Virtual Column definition in External Column AS () statement - #218
  2. enforce support for Snowflake _FILE_FORMAT options in External Column ddl statement - #221

Others

  1. 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

17 Dec 11:00
Compare
Choose a tag to compare

v0.31.2

Improvements

Snowflake update:

  1. Added support for Snowflake AUTOINCREMENT | IDENTITY column definitions with optional parameter ORDER|NOORDER statement - #213

Common

  1. 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

05 Nov 17:21
b5d8b26
Compare
Choose a tag to compare

Improvements

Snowflake updates:

  1. Support multiple tag definitions in a single WITH TAG statement.
  2. Added support for Snowflake double single quotes - #208

Python 3.11 support & SNOWFLAKE Improvements

22 Aug 16:02
Compare
Choose a tag to compare

v0.31.0

Fixes:

  1. Move inline flag in regexp (issue with python 3.11) - #200
    Fix for: #199

Improvements:

  1. Added Snowflake Table DDL support of WITH MASKING POLICY column definition - #201

v0.30.0 - IDENTITY as Column property & more

29 Mar 20:16
Compare
Choose a tag to compare

Fixes:

  1. IDENTITY now parsed normally as a separate column property. Issue: #184

New Features:

  1. IN TABLESPACE IBM DB2 statement now is parsed into 'tablespace' key. Issue: #194.
    INDEX IN also parsed to 'index_in' key.
    Added support for ORGANIZE BY statement

  2. Added support for PostgreSQL INHERITS statement. Issue: #191

0.26.1 - HQL fixes

24 Apr 08:55
Compare
Choose a tag to compare

Fixes:

  1. support Multiple SERDEPROPERTIES - #126
  2. Fix for issue with LOCATION and TBLPROPERTIES clauses in CREATE TABLE LIKE - #125
  3. LOCATION now works correctly with double quote strings

v0.29.0 Added support for non-numeric column type parameters

20 Nov 18:03
Compare
Choose a tag to compare

v0.29.0

Fixes

  1. AUTOINCREMENT statement now parsed validly same way as AUTO_INCREMENT and showed up in output as 'autoincrement' property of the column
    Fix for: #170
  2. Fix issue ' TypeError argument of type 'NoneType' is not iterable' on some foreigen keys #148

New Features

  1. Support for non-numeric column type parameters #171
    It shows in column attribute 'type_parameters'.

v 0.28.1 fix multiline comments parsing & skip INSERT ROWS from SQL

31 Oct 20:23
Compare
Choose a tag to compare

v0.28.1

Imporvements:

  1. Lines started with INSERT INTO statement now successfully ignored by parser (so you can keep them in ddl - they will be just skiped)

Fixes:

  1. Important fix for multiline comments