Skip to content

Commit

Permalink
Document Spark version for Spark functions (facebookincubator#10677)
Browse files Browse the repository at this point in the history
Summary:
The semantics of certain Spark functions vary between versions. This PR
documents the Spark version to match when implementing a Spark function.

Pull Request resolved: facebookincubator#10677

Reviewed By: kagamiori

Differential Revision: D60881999

Pulled By: xiaoxmeng

fbshipit-source-id: 0bdf7d30c95003daeefea45339bb7a18aed5667a
  • Loading branch information
rui-mo authored and facebook-github-bot committed Aug 8, 2024
1 parent ad1f393 commit 79129df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ with a benchmark.
* Describe the function semantics and edge cases clearly.

3. Use Presto or Spark to check the function semantics.
* When implementing a Spark function, check the function semantics using Spark 3.5 with ANSI OFF.
* Try different edge cases to check whether the function returns null, or
throws, etc.
* Make sure to replicate the exact semantics.
Expand Down
2 changes: 2 additions & 0 deletions velox/docs/spark_functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
Spark Functions
***********************

The semantics of Spark functions match Spark 3.5 with ANSI OFF.

.. toctree::
:maxdepth: 1

Expand Down

0 comments on commit 79129df

Please sign in to comment.