About 50 results
Open links in new tab
  1. Spark - repartition () vs coalesce () - Stack Overflow

    Jul 24, 2015 · Is coalesce or repartition faster? coalesce may run faster than repartition, but unequal sized partitions are generally slower to work with than equal sized partitions. You'll usually need to …

  2. pyspark - Spark: What is the difference between repartition and ...

    Jan 20, 2021 · It says: for repartition: resulting DataFrame is hash partitioned. for repartitionByRange: resulting DataFrame is range partitioned. And a previous question also mentions it. However, I still …

  3. apache spark sql - Difference between df.repartition and ...

    Mar 4, 2021 · What is the difference between DataFrame repartition() and DataFrameWriter partitionBy() methods? I hope both are used to "partition data based on dataframe column"? Or is there any …

  4. Why is repartition faster than partitionBy in Spark?

    Nov 15, 2021 · Even though partitionBy is faster than repartition, depending on the number of dataframe partitions and distribution of data inside those partitions, just using partitionBy alone might end up …

  5. apache spark - repartition in memory vs file - Stack Overflow

    Jul 13, 2023 · repartition() creates partition in memory and is used as a read() operation. partitionBy() creates partition in disk and is used as a write operation. How can we confirm there is multiple files in

  6. Difference between repartition (1) and coalesce (1) - Stack Overflow

    Sep 12, 2021 · The repartition function avoids this issue by shuffling the data. In any scenario where you're reducing the data down to a single partition (or really, less than half your number of …

  7. Spark repartitioning by column with dynamic number of partitions per ...

    Oct 8, 2019 · Spark takes the columns you specified in repartition, hashes that value into a 64b long and then modulo the value by the number of partitions. This way the number of partitions is deterministic.

  8. Spark parquet partitioning : Large number of files

    Jun 28, 2017 · The solution is to extend the approach using repartition(..., rand) and dynamically scale the range of rand by the desired number of output files for that data partition.

  9. apache spark - Difference between shuffle partition and repartition ...

    Jun 9, 2022 · The biggest difference between shuffle partition and repartition is when things are defined. The configuration spark.sql.shuffle.partitions is a property and according to the documentation …

  10. How to specify file size using repartition () in spark

    Jan 27, 2021 · Im using pyspark and I have a large data source that I want to repartition specifying the files size per partition explicitly. I know using the repartition(500) function will split my parquet into ...