mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-01 21:27:15 +00:00
Update metadata-ingestion/src/datahub/ingestion/source/sql/athena.py
Co-authored-by: Sergio Gómez Villamor <sgomezvillamor@gmail.com>
This commit is contained in:
parent
f1b70c4030
commit
58e88dbe40
@ -582,9 +582,7 @@ class AthenaSource(SQLAlchemySource):
|
||||
rows = res.fetchall()
|
||||
|
||||
# Concatenate all rows into a single string with newlines
|
||||
create_table_statement = ""
|
||||
for row in rows:
|
||||
create_table_statement += row[0] + "\n" # Add a newline after each row
|
||||
create_table_statement = "\n".join(row[0] for row in rows)
|
||||
|
||||
try:
|
||||
athena_table_info = AthenaPropertiesExtractor.get_table_properties(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user