Skip to content

Commit 36ab9ae

Browse files
Expose _do_sql as part of osc_ingest_tools public interface (#44)
* Expose _do_sql as part of osc_ingest_tools public interface Signed-off-by: Michael Tiemann <72577720+MichaelTiemannOSC@users.noreply.github.com> * Update __init__.py Make isort happy. Signed-off-by: Michael Tiemann <72577720+MichaelTiemannOSC@users.noreply.github.com> * Update trino_utils.py Make black happy. Signed-off-by: Michael Tiemann <72577720+MichaelTiemannOSC@users.noreply.github.com> * Update setup.py Bump version number. Signed-off-by: Michael Tiemann <72577720+MichaelTiemannOSC@users.noreply.github.com> --------- Signed-off-by: Michael Tiemann <72577720+MichaelTiemannOSC@users.noreply.github.com>
1 parent eefebad commit 36ab9ae

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

osc_ingest_trino/__init__.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from .dotenv_utils import load_credentials_dotenv
33
from .sqlcols import enforce_partition_column_order, enforce_sql_column_names, sql_compliant_name
44
from .sqltypes import create_table_schema_pairs, pandas_type_to_sql
5-
from .trino_utils import TrinoBatchInsert, attach_trino_engine, fast_pandas_ingest_via_hive
5+
from .trino_utils import TrinoBatchInsert, _do_sql, attach_trino_engine, fast_pandas_ingest_via_hive
66

77
__all__ = [
88
"sql_compliant_name",
@@ -16,4 +16,5 @@
1616
"attach_trino_engine",
1717
"fast_pandas_ingest_via_hive",
1818
"TrinoBatchInsert",
19+
"_do_sql",
1920
]

osc_ingest_trino/trino_utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"attach_trino_engine",
1616
"fast_pandas_ingest_via_hive",
1717
"TrinoBatchInsert",
18+
"_do_sql",
1819
]
1920

2021

@@ -70,7 +71,6 @@ def fast_pandas_ingest_via_hive( # noqa: C901
7071
colmap={},
7172
verbose=False,
7273
):
73-
7474
uh8 = uuid.uuid4().hex[:8]
7575
hive_table = f"ingest_temp_{uh8}"
7676

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
setup(
1212
name="osc-ingest-tools",
13-
version="0.4.2",
13+
version="0.4.3",
1414
description="python tools to assist with standardized data ingestion workflows for the OS-Climate project",
1515
long_description=README,
1616
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)