etr2460 commented on a change in pull request #9764:
URL:
https://github.com/apache/incubator-superset/pull/9764#discussion_r437722712
##########
File path: superset/db_engine_specs/hive.py
##########
@@ -179,11 +193,15 @@ def convert_to_hive_type(col_type: str) -> str:
bucket_path,
os.path.join(upload_prefix, table_name,
os.path.basename(filename)),
)
+ engine = cls.get_engine(database)
+
+ if if_exists == "replace":
+ engine.execute(f"DROP TABLE IF EXISTS {full_table_name}")
Review comment:
Looks like this might not be possible as per
https://stackoverflow.com/a/43879809?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]