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

Fixing cdd_gae gen parquet -> sqalalchemy table #3

Merged
merged 3 commits into from
Feb 14, 2023

Conversation

skushnir123
Copy link
Collaborator

Fixes two bugs which caused this command: python -m cdd_gae gen --parse 'parquet' --emit 'sqlalchemy_table' -i "$parquet_file" -o "$py_file" --name "$table_name" to fail.

  • ast_utils updated to handle Assigns, not just classes and functions. This is critical for Sqlalchemy tables as they are inherently Assign expressions.
  • updated infer imports. A map was expecting a 1d array but was receiving a 2d array so chain(2d array) fixed it.

@skushnir123 skushnir123 marked this pull request as ready for review February 10, 2023 16:09
@SamuelMarks SamuelMarks merged commit 6b2e79e into master Feb 14, 2023
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

Successfully merging this pull request may close these issues.

None yet

2 participants