𝗧𝗲𝘀𝘁 𝗬𝗼𝘂𝗿 𝗦𝗽𝗮𝗿𝗸 𝗞𝗻𝗼𝘄𝗹𝗲𝗱𝗴𝗲.
I was teaching repartition and coalesce today and Just thought to have a quiz around this.
Let's see how many of you can answer this correctly.
𝗪𝗵𝗶𝗰𝗵 𝗼𝗻𝗲 𝗶𝘀 𝘁𝗿𝘂𝗲 𝗮𝗯𝗼𝘂𝘁 𝗖𝗼𝗮𝗹𝗲𝘀𝗰𝗲 𝗮𝗻𝗱 𝗿𝗲𝗽𝗮𝗿𝘁𝗶𝘁𝗶𝗼𝗻?
1. Coalesce can only decrease the partition, repartition can increase/decrease the partition.
2. coalesce does not shuffle the data, repartition shuffle the data
3. coalesce tries to avoid shuffling the data, repartition always shuffles the data.
4. Both coalesce and repartition can increase/decrease the partition
5. Both coalesce and repartition can cause data shuffling.
There can be Multiple Answers too. Let me know in comment
Loved it?
Hit 👍 show ❤️
Follow our page for more updates OnlineLearningCenter
#dataengineering #spark #datascience
Snowflake SME / Databricks / Azure / SQL / DBT / TimeXtender - everything related to data analytics
1moLooking forward to the sessions