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

Strange behavior in terminal output using snowflake-connector together with simple-ddl-parser #160

Closed
devxor opened this issue Sep 28, 2022 · 4 comments
Assignees

Comments

@devxor
Copy link

devxor commented Sep 28, 2022

Hi,

I don't know if this is a bug or what it is exactly. Perhaps it's more connected to snowflake-connector-python...

I have described everything on StackOverflow. Link below. Thought that you could also help me with this or at least some ideas to try out. Long sotry short - when using simple-ddl-parser together with snowflake-connector-python I'm starting to get a lot of "debug" information printed on the screen from connector... The DDL is successfuly parsed, but why all of this additional information? It seems to be connected with simple-ddl-parser somehow, because when I'm not using it I don't see anything strange printed out on the screen. All the details in the below link.
StackOverflow link

Thx in advance! Perhaps somebody will have idea what is this about.

@devxor
Copy link
Author

devxor commented Sep 28, 2022

It was answered on StackOverflow! It has to do with the logging level used in the simple-ddl-parser which is DEBUG per default. It could be changed like this:

import logging

DDLParser(ddl, log_level=logging.WARNING).run()

However, it seems there is no way to set the logging level using the parse_from_file. Is it right? Perhaps it could be an ask for a new feature? To add this possibility also to function parse_from_file?

@xnuinside
Copy link
Owner

@devxor right, I will fix it in next release, thanks for reporting this issue

@xnuinside xnuinside self-assigned this Oct 30, 2022
@xnuinside
Copy link
Owner

@devxor very sorry, that it taken so much time - but I released new version with argument 'parser_settings' - described in changelog https://github.com/xnuinside/simple-ddl-parser/#changelog

if will be needed anything else - feel free to open new issues!

@devxor
Copy link
Author

devxor commented Oct 31, 2022

Thank you!
Indeed, I have found something else and will open a new issue :).

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