Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tab between column name and column type #53

Closed
lapter57 opened this issue Aug 10, 2021 · 2 comments
Closed

Tab between column name and column type #53

lapter57 opened this issue Aug 10, 2021 · 2 comments

Comments

@lapter57
Copy link

If the column name is separated from the column type only by a tab, then return []

CREATE TABLE IF NOT EXISTS schema.table
(
    field_1\tSTRING,
    field_2\tTIMESTAMP
);

If the first column name is separated from the column type by a tab and some spaces (before or after the tab), but second column name is separated from the DECIMAL type only by a tab then an error is returned

CREATE TABLE IF NOT EXISTS schema.table
(
    field_1\t STRING,
    field_2\tDECIMAL(38,10)
);

If I replace all tabs with a space with method replace('\t', ' '), then I get the correct result

@xnuinside
Copy link
Owner

@lapter57 , hi! thanks for the report. I will try to fix it today and release patch version.

@xnuinside
Copy link
Owner

xnuinside commented Aug 10, 2021

@lapter57 added test #54 and released 0.19.1 with fix https://pypi.org/project/simple-ddl-parser/. if will be any other issues - feel free to open the new issue report. Thanks one more time!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants