Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2023 02:03 PM
Problem
Reading nearly equivalent parquet tables in a directory with some having column X with type float and some with type double fails.
Attempts at resolving
- Using streaming files
- Removing delta caching, vectorization
- Using ,cache() explicitly
Notes
This is a known problem, but I need a work around.
Example code
(spark.read.option("mergeSchema", False)
.option("spark.databricks.io.cache.enabled", False)
.parquet(
f"s3://my-bucket/data/*"
)
.write.mode("append").saveAsTable("my_table"))