INSERT OVERWRITE DIRECTORY
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
β01-21-2025 06:55 AM
I am using this query to create a csv in a volume named test_volsrr that i created
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
β01-24-2025 12:17 AM
Hey,
The issue youβre facing with the CSV file size being significantly larger than the original table is likely due to the serialization and formatting overhead when exporting the data. A good way to verify this would be to try exporting the same dataset using the Parquet format, which is more optimized for storage and performance.
You can also enable compression or export only the necessary columns to minimize the data volume being written
If you think this option is correct, please give it a π
π
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
β01-31-2025 11:48 PM
The DISTRIBUTE BY COALESCE(1) clause is intended to reduce the number of output files to one. However, this can lead to inefficiencies and large file sizes because it forces all data to be processed by a single task, which can cause memory and performance issues. Instead of using COALESCE(1), consider using REPARTITION(1). This can help in better distributing the data and reducing the file size.
Applying compression to the CSV file can significantly reduce its size. You can use the compression option to specify the desired compression codec (e.g., gzipπ