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

remove transform file #162

Merged
merged 2 commits into from
Mar 7, 2022
Merged

remove transform file #162

merged 2 commits into from
Mar 7, 2022

Conversation

dimberman
Copy link
Collaborator

@dimberman dimberman commented Mar 4, 2022

Now that we have aql.render, the transform_file function is redundant and should be removed as part of 1.0

@dimberman dimberman changed the title added warning of deprecation of transform file added deprecation warning to transform file Mar 4, 2022
@dimberman dimberman requested a review from tatiana March 4, 2022 01:57
@@ -63,6 +64,10 @@ def transform_file(
warehouse: Optional[str] = None,
output_table: Table = None,
):
warnings.warn(
"astro.sql.transform_file is now deprecated and will be taken out in version 1.0. Please use astro.sql.render instead"
)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dimberman since we are in an alpha version, and we have a disclaimer saying that the interface can change, wouldn't it make sense to just remove this feature now - as opposed to wait a stable release? This seems a less disruptive change than changing how we do query templating - and for that change we did not wait release 1.0.x

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tatiana fair enough, I'll just remove it

@dimberman dimberman changed the title added deprecation warning to transform file remove transform file Mar 7, 2022
@dimberman dimberman merged commit 3f8889a into main Mar 7, 2022
@dimberman dimberman deleted the deprecate-transform-file branch March 7, 2022 19:42
utkarsharma2 pushed a commit that referenced this pull request Mar 10, 2022
* added warning of deprecation of transform file

* remove function instead of deprecating it
utkarsharma2 pushed a commit that referenced this pull request Mar 30, 2022
* added warning of deprecation of transform file

* remove function instead of deprecating it
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