flytekitplugins-sqlalchemy 1.6.1__tar.gz → 1.6.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: flytekitplugins-sqlalchemy
3
- Version: 1.6.1
3
+ Version: 1.6.2
4
4
  Summary: SQLAlchemy plugin for flytekit
5
5
  Author: dolthub
6
6
  Author-email: max@dolthub.com
@@ -11,6 +11,7 @@ from flytekit.configuration.default_images import DefaultImages, PythonVersion
11
11
  from flytekit.core.base_sql_task import SQLTask
12
12
  from flytekit.core.python_customized_container_task import PythonCustomizedContainerTask
13
13
  from flytekit.core.shim_task import ShimTaskExecutor
14
+ from flytekit.loggers import logger
14
15
  from flytekit.models import task as task_models
15
16
  from flytekit.models.security import Secret
16
17
  from flytekit.types.schema import FlyteSchema
@@ -126,10 +127,10 @@ class SQLAlchemyTaskExecutor(ShimTaskExecutor[SQLAlchemyTask]):
126
127
  tt.custom["connect_args"][key] = value
127
128
 
128
129
  engine = create_engine(tt.custom["uri"], connect_args=tt.custom["connect_args"], echo=False)
129
- print(f"Connecting to db {tt.custom['uri']}")
130
+ logger.info(f"Connecting to db {tt.custom['uri']}")
130
131
 
131
132
  interpolated_query = SQLAlchemyTask.interpolate_query(tt.custom["query_template"], **kwargs)
132
- print(f"Interpolated query {interpolated_query}")
133
+ logger.info(f"Interpolated query {interpolated_query}")
133
134
  with engine.begin() as connection:
134
135
  df = None
135
136
  if tt.interface.outputs:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: flytekitplugins-sqlalchemy
3
- Version: 1.6.1
3
+ Version: 1.6.2
4
4
  Summary: SQLAlchemy plugin for flytekit
5
5
  Author: dolthub
6
6
  Author-email: max@dolthub.com
@@ -6,7 +6,7 @@ microlib_name = f"flytekitplugins-{PLUGIN_NAME}"
6
6
 
7
7
  plugin_requires = ["flytekit>=1.3.0b2,<2.0.0", "sqlalchemy>=1.4.7"]
8
8
 
9
- __version__ = "1.6.1"
9
+ __version__ = "1.6.2"
10
10
 
11
11
  setup(
12
12
  name=microlib_name,