We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9708de6 commit 0e13822Copy full SHA for 0e13822
spark_utils/delta_lake/functions.py
@@ -95,7 +95,7 @@ def publish_delta_to_hive(
95
"""
96
97
spark_session.sql(
98
- f"CREATE SCHEMA IF NOT EXISTS {publish_schema_name} location 'abfss://{data_path[8:].split('/')[0]}/'"
+ f"CREATE SCHEMA IF NOT EXISTS {publish_schema_name} location 'abfss://{'/'.join(data_path[8:].split('/')[0:-1])}/'"
99
)
100
if refresh:
101
spark_session.sql(f"DROP TABLE IF EXISTS {publish_schema_name}.{publish_table_name}")
0 commit comments