Skip to content

Commit

Permalink
Spark: send discovery data despite errors. (#2142)
Browse files Browse the repository at this point in the history
  • Loading branch information
jzalucki authored Aug 1, 2024
1 parent 9ac3303 commit 8741aac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion soda/spark/soda/data_sources/spark_data_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def get_table_columns(
),
)
query.execute()
if len(query.rows) > 0:
if query.rows and len(query.rows) > 0:
rows = query.rows
# Remove the partitioning information (see https://spark.apache.org/docs/latest/sql-ref-syntax-aux-describe-table.html)
partition_indices = [i for i in range(len(rows)) if rows[i][0].startswith("# Partition")]
Expand Down

0 comments on commit 8741aac

Please sign in to comment.