spark-style-guide

Spark style guide (by MrPowers)

Spark-style-guide Alternatives

Similar projects and alternatives to spark-style-guide

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better spark-style-guide alternative or higher similarity.

spark-style-guide reviews and mentions

Posts with mentions or reviews of spark-style-guide. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-01-31.
  • Ask HN: How do you test SQL?
    18 projects | news.ycombinator.com | 31 Jan 2023
    Spark makes it easy to wrap SQL in functions that are easy to test. I am the author of the popular Scala Spark (spark-fast-tests) and PySpark (chispa) testing libraries. Some additional tips to speed up Spark tests (can speed up tests between 70-90%):

    * reuse the same Spark session throughout the test suite

    * Set shuffle partitions to 2 (instead of default which is 200)

    * Use dependency injection to avoid disk I/O in the test suite

    * Use fast DataFrame equality when possible. assertSmallDataFrameEquality is 4x faster than assertLargeDataFrameEquality.

    * Use column equality to test column functions. Don't compare DataFrames unless you're testing custom DataFrame transformations. See the spark-style-guide for definitions for these terms: https://github.com/MrPowers/spark-style-guide/blob/main/PYSP...

    Spark is an underrated tool for testing SQL. Spark makes it really easy to abstract SQL into unit testable chunks. Configuring your tests properly takes some knowledge, but you can make the tests run relatively quickly.

  • PySpark style guide
    2 projects | /r/apachespark | 18 Jan 2023
    I created a PySpark style guide to help the community write code that's easy to reuse, unit test, and debug. Feel free to open issues / PRs if you have any suggestions / improvements.

Stats

Basic spark-style-guide repo stats
2
250
0.0
12 months ago

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com