From 31698c0ac12ccc79c0c94591d6cf88cfcd067413 Mon Sep 17 00:00:00 2001 From: Jorge Vasquez Rojas Date: Wed, 28 Aug 2024 10:01:39 -0600 Subject: [PATCH] Update imports --- .gitignore | 1 + src/snowflake/sqlalchemy/custom_commands/__init__.py | 5 ----- src/snowflake/sqlalchemy/custom_commands/aws_bucket.py | 2 +- src/snowflake/sqlalchemy/custom_commands/azure_container.py | 2 +- .../sqlalchemy/custom_commands/create_file_format.py | 2 +- src/snowflake/sqlalchemy/custom_commands/create_stage.py | 2 +- 6 files changed, 5 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index be2b6924..8a30529f 100644 --- a/.gitignore +++ b/.gitignore @@ -98,6 +98,7 @@ ENV/ generated_version.py *coverage.xml .DS_Store +junit.xml # Editor specific .idea/ diff --git a/src/snowflake/sqlalchemy/custom_commands/__init__.py b/src/snowflake/sqlalchemy/custom_commands/__init__.py index 6be7919b..8aeaa202 100644 --- a/src/snowflake/sqlalchemy/custom_commands/__init__.py +++ b/src/snowflake/sqlalchemy/custom_commands/__init__.py @@ -25,11 +25,6 @@ from .parquet_formater import PARQUETFormatter from .utils import translate_bool -# The __all__ list is used to maintain backward compatibility with previous versions of the package. -# After splitting a large file into a module, __all__ explicitly defines the public API, ensuring -# that existing imports from the original file still work as expected. This approach prevents -# breaking changes by controlling which functions, classes, and variables are exposed when -# the module is imported. __all__ = [ "AWSBucket", "AzureContainer", diff --git a/src/snowflake/sqlalchemy/custom_commands/aws_bucket.py b/src/snowflake/sqlalchemy/custom_commands/aws_bucket.py index 541cd19f..c9e616e1 100644 --- a/src/snowflake/sqlalchemy/custom_commands/aws_bucket.py +++ b/src/snowflake/sqlalchemy/custom_commands/aws_bucket.py @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -from sqlalchemy import ClauseElement +from sqlalchemy.sql.elements import ClauseElement from snowflake.sqlalchemy.compat import string_types diff --git a/src/snowflake/sqlalchemy/custom_commands/azure_container.py b/src/snowflake/sqlalchemy/custom_commands/azure_container.py index ac09a05c..18f08940 100644 --- a/src/snowflake/sqlalchemy/custom_commands/azure_container.py +++ b/src/snowflake/sqlalchemy/custom_commands/azure_container.py @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -from sqlalchemy import ClauseElement +from sqlalchemy.sql.elements import ClauseElement from snowflake.sqlalchemy.compat import string_types diff --git a/src/snowflake/sqlalchemy/custom_commands/create_file_format.py b/src/snowflake/sqlalchemy/custom_commands/create_file_format.py index 879f9090..ab993e86 100644 --- a/src/snowflake/sqlalchemy/custom_commands/create_file_format.py +++ b/src/snowflake/sqlalchemy/custom_commands/create_file_format.py @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -from sqlalchemy import DDLElement +from sqlalchemy.sql.ddl import DDLElement class CreateFileFormat(DDLElement): diff --git a/src/snowflake/sqlalchemy/custom_commands/create_stage.py b/src/snowflake/sqlalchemy/custom_commands/create_stage.py index efda5944..97cb36b9 100644 --- a/src/snowflake/sqlalchemy/custom_commands/create_stage.py +++ b/src/snowflake/sqlalchemy/custom_commands/create_stage.py @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -from sqlalchemy import DDLElement +from sqlalchemy.sql.ddl import DDLElement class CreateStage(DDLElement):