spark-instrumented-optimizer/docs
Gengliang Wang 143303147b [SPARK-34742][SQL] ANSI mode: Abs throws exception if input is out of range
### What changes were proposed in this pull request?

For the following cases, ABS should throw exceptions since the results are out of the range of the result data types in ANSI mode.
```
SELECT abs(${Int.MinValue});
SELECT abs(${Long.MinValue});
```
### Why are the changes needed?

Better ANSI compliance

### Does this PR introduce _any_ user-facing change?

Yes, Abs throws an exception if input is out of range in ANSI mode

### How was this patch tested?

Unit test

Closes #31836 from gengliangwang/ansiAbs.

Authored-by: Gengliang Wang <gengliang.wang@databricks.com>
Signed-off-by: Wenchen Fan <wenchen@databricks.com>
2021-03-17 06:57:25 +00:00
..
.bundle [SPARK-34433][DOCS] Lock Jekyll version by Gemfile and Bundler 2021-02-18 12:17:57 +09:00
_data [SPARK-34603][SQL] Support ADD ARCHIVE and LIST ARCHIVES command 2021-03-09 21:28:35 +09:00
_includes [SPARK-29052][DOCS][ML][PYTHON][CORE][R][SQL][SS] Create a Migration Guide tap in Spark documentation 2019-09-15 11:17:30 -07:00
_layouts [SPARK-34041][PYTHON][DOCS] Miscellaneous cleanup for new PySpark documentation 2021-01-08 09:28:31 +09:00
_plugins [MINOR] Spelling bin core docs external mllib repl 2020-11-30 13:59:51 +09:00
css [SPARK-33796][DOCS][FOLLOWUP] Tweak the width of left-menu of Spark SQL Guide 2021-01-08 09:43:11 -06:00
img [SPARK-32189][DOCS][PYTHON] Development - Setting up IDEs 2020-09-21 12:29:17 +09:00
js [SPARK-32723][WEBUI] Upgrade to jQuery 3.5.1 2020-09-30 21:30:17 -07:00
.gitignore [SPARK-31429][SQL][DOC] Automatically generates a SQL document for built-in functions 2020-04-21 10:55:13 +09:00
_config.yml Revert "[SPARK-31168][SPARK-33913][BUILD] Upgrade Scala to 2.12.13 and Kafka to 2.7.0" 2021-01-27 17:03:15 +09:00
building-spark.md [SPARK-34539][BUILD][INFRA] Remove stand-alone version Zinc server 2021-03-01 08:39:38 -06:00
cloud-integration.md [SPARK-33739][SQL] Jobs committed through the S3A Magic committer don't track bytes 2021-02-18 08:43:18 -06:00
cluster-overview.md [SPARK-26918][DOCS] All .md should have ASF license header 2019-03-30 19:49:45 -05:00
configuration.md [SPARK-34503][DOCS][FOLLOWUP] Document available codecs for event log compression 2021-03-01 15:42:10 -08:00
contributing-to-spark.md [SPARK-26918][DOCS] All .md should have ASF license header 2019-03-30 19:49:45 -05:00
core-migration-guide.md [SPARK-34503][CORE] Use zstd for spark.eventLog.compression.codec by default 2021-02-23 16:37:29 -08:00
Gemfile [SPARK-34433][DOCS] Lock Jekyll version by Gemfile and Bundler 2021-02-18 12:17:57 +09:00
Gemfile.lock [SPARK-34433][DOCS] Lock Jekyll version by Gemfile and Bundler 2021-02-18 12:17:57 +09:00
graphx-programming-guide.md [MINOR] Spelling bin core docs external mllib repl 2020-11-30 13:59:51 +09:00
hadoop-provided.md [SPARK-29574][K8S] Add SPARK_DIST_CLASSPATH to the executor class path 2019-12-16 10:11:50 -08:00
hardware-provisioning.md [SPARK-31018][CORE][DOCS] Deprecate support of multiple workers on the same host in Standalone 2020-04-15 11:29:55 -07:00
index.md [SPARK-34162][DOCS][PYSPARK] Add PyArrow compatibility note for Python 3.9 2021-01-19 19:09:14 -08:00
job-scheduling.md [SPARK-33891][DOCS][CORE] Update dynamic allocation related documents 2020-12-23 23:43:21 +09:00
migration-guide.md [SPARK-29052][DOCS][ML][PYTHON][CORE][R][SQL][SS] Create a Migration Guide tap in Spark documentation 2019-09-15 11:17:30 -07:00
ml-advanced.md [SPARK-30803][DOCS] Fix the home page link for Scala API document 2020-02-16 09:55:03 -06:00
ml-ann.md [SPARK-26918][DOCS] All .md should have ASF license header 2019-03-30 19:49:45 -05:00
ml-classification-regression.md [MINOR][DOCS] Fix broken python doc links 2021-01-18 10:06:45 +09:00
ml-clustering.md [MINOR][DOCS] Fix broken python doc links 2021-01-18 10:06:45 +09:00
ml-collaborative-filtering.md [MINOR][DOCS] Fix broken python doc links 2021-01-18 10:06:45 +09:00
ml-datasource.md [MINOR][DOCS] Fix typo in PySpark example in ml-datasource.md 2020-07-12 09:01:41 -07:00
ml-decision-tree.md [SPARK-26918][DOCS] All .md should have ASF license header 2019-03-30 19:49:45 -05:00
ml-ensembles.md [SPARK-26918][DOCS] All .md should have ASF license header 2019-03-30 19:49:45 -05:00
ml-features.md [SPARK-34080][ML][PYTHON][FOLLOW-UP] Update score function in UnivariateFeatureSelector document 2021-02-10 09:24:25 +09:00
ml-frequent-pattern-mining.md [MINOR][DOCS] Fix broken python doc links 2021-01-18 10:06:45 +09:00
ml-guide.md [SPARK-32339][ML][DOC] Improve MLlib BLAS native acceleration docs 2020-07-28 08:36:11 -07:00
ml-linalg-guide.md [SPARK-32339][ML][DOC] Improve MLlib BLAS native acceleration docs 2020-07-28 08:36:11 -07:00
ml-linear-methods.md [SPARK-26918][DOCS] All .md should have ASF license header 2019-03-30 19:49:45 -05:00
ml-migration-guide.md [MINOR] Spelling bin core docs external mllib repl 2020-11-30 13:59:51 +09:00
ml-pipeline.md [MINOR][DOCS] Fix broken python doc links 2021-01-18 10:06:45 +09:00
ml-statistics.md [MINOR][DOCS] Fix broken python doc links 2021-01-18 10:06:45 +09:00
ml-survival-regression.md [SPARK-26918][DOCS] All .md should have ASF license header 2019-03-30 19:49:45 -05:00
ml-tuning.md [SPARK-34415][ML] Randomization in hyperparameter optimization 2021-02-27 08:34:39 -06:00
mllib-classification-regression.md [SPARK-26918][DOCS] All .md should have ASF license header 2019-03-30 19:49:45 -05:00
mllib-clustering.md [MINOR][DOCS] Fix broken python doc links 2021-01-18 10:06:45 +09:00
mllib-collaborative-filtering.md [MINOR][DOCS] Fix broken python doc links 2021-01-18 10:06:45 +09:00
mllib-data-types.md [MINOR][DOCS] Fix broken python doc links 2021-01-18 10:06:45 +09:00
mllib-decision-tree.md [MINOR][DOCS] Fix broken python doc links 2021-01-18 10:06:45 +09:00
mllib-dimensionality-reduction.md [MINOR][DOCS] Fix broken python doc links 2021-01-18 10:06:45 +09:00
mllib-ensembles.md [MINOR][DOCS] Fix broken python doc links 2021-01-18 10:06:45 +09:00
mllib-evaluation-metrics.md [MINOR][DOCS] Fix broken python doc links 2021-01-18 10:06:45 +09:00
mllib-feature-extraction.md [MINOR][DOCS] Fix broken python doc links 2021-01-18 10:06:45 +09:00
mllib-frequent-pattern-mining.md [MINOR][DOCS] Fix broken python doc links 2021-01-18 10:06:45 +09:00
mllib-guide.md [SPARK-26918][DOCS] All .md should have ASF license header 2019-03-30 19:49:45 -05:00
mllib-isotonic-regression.md [MINOR][DOCS] Fix broken python doc links 2021-01-18 10:06:45 +09:00
mllib-linear-methods.md [MINOR][DOCS] Fix broken python doc links 2021-01-18 10:06:45 +09:00
mllib-naive-bayes.md [MINOR][DOCS] Fix broken python doc links 2021-01-18 10:06:45 +09:00
mllib-optimization.md [SPARK-30803][DOCS] Fix the home page link for Scala API document 2020-02-16 09:55:03 -06:00
mllib-pmml-model-export.md [SPARK-30803][DOCS] Fix the home page link for Scala API document 2020-02-16 09:55:03 -06:00
mllib-statistics.md [MINOR][DOCS] Fix broken python doc links 2021-01-18 10:06:45 +09:00
monitoring.md [SPARK-34531][CORE] Remove Experimental API tag in PrometheusServlet 2021-02-24 18:11:25 -08:00
programming-guide.md [SPARK-26918][DOCS] All .md should have ASF license header 2019-03-30 19:49:45 -05:00
pyspark-migration-guide.md [SPARK-34398][DOCS] Fix PySpark migration link 2021-02-08 09:12:15 +09:00
quick-start.md [SPARK-32865][DOC] python section in quickstart page doesn't display SPARK_VERSION correctly 2020-09-12 21:45:55 -07:00
rdd-programming-guide.md [MINOR][DOCS] Fix the link to the pickle module page in RDD Programming Guide 2020-10-18 17:13:55 +09:00
README.md [SPARK-34433][DOCS] Lock Jekyll version by Gemfile and Bundler 2021-02-18 12:17:57 +09:00
running-on-kubernetes.md [MINOR][DOCS][K8S] Use hadoop-aws 3.2.2 in K8s example 2021-02-24 11:34:29 +09:00
running-on-mesos.md [SPARK-22256][MESOS] Introduce spark.mesos.driver.memoryOverhead 2020-12-15 14:00:38 -08:00
running-on-yarn.md [MINOR] Spelling bin core docs external mllib repl 2020-11-30 13:59:51 +09:00
security.md [SPARK-31282][DOC] Supplement version for configuration appear in security doc 2020-03-31 12:33:01 +09:00
spark-standalone.md [SPARK-32004][ALL] Drop references to slave 2020-07-13 14:05:33 -07:00
sparkr-migration-guide.md [SPARK-31290][R] Add back the deprecated R APIs 2020-04-01 10:38:03 +09:00
sparkr.md [MINOR] Spelling bin core docs external mllib repl 2020-11-30 13:59:51 +09:00
sql-data-sources-avro.md [SPARK-34500][DOCS][EXAMPLES] Replace symbol literals with $"" in examples and documents 2021-02-23 11:22:02 +09:00
sql-data-sources-binaryFile.md [SPARK-27627][SQL] Make option "pathGlobFilter" as a general option for all file sources 2019-05-09 08:41:43 +09:00
sql-data-sources-generic-options.md [SPARK-31962][SQL] Provide modifiedAfter and modifiedBefore options when filtering from a batch-based file data source 2020-11-23 08:30:41 +09:00
sql-data-sources-hive-tables.md [SPARK-32852][SQL][FOLLOW_UP] Add notice about keep hive version consistence when config hive jars location 2021-01-26 13:40:20 +09:00
sql-data-sources-jdbc.md [SPARK-31816][SQL][DOCS] Added high level description about JDBC connection providers for users/developers 2021-02-10 12:28:28 +09:00
sql-data-sources-json.md [SPARK-31319][SQL][FOLLOW-UP] Add a SQL example for UDAF 2020-04-14 13:29:44 +09:00
sql-data-sources-load-save-functions.md [SPARK-31319][SQL][FOLLOW-UP] Add a SQL example for UDAF 2020-04-14 13:29:44 +09:00
sql-data-sources-orc.md [SPARK-34036][DOCS] Update ORC data source documentation 2021-01-06 20:19:16 -08:00
sql-data-sources-parquet.md [SPARK-34437][SQL][DOCS] Update Spark SQL guide about the rebasing DS options and SQL configs 2021-02-18 17:48:50 +09:00
sql-data-sources-troubleshooting.md [SPARK-26918][DOCS] All .md should have ASF license header 2019-03-30 19:49:45 -05:00
sql-data-sources.md [SPARK-30506][SQL][DOC] Document for generic file source options/configs 2020-02-05 17:16:38 +08:00
sql-distributed-sql-engine.md [SPARK-30280][DOC] Update docs for make Hive 2.3 dependency by default 2019-12-21 10:51:28 -08:00
sql-getting-started.md [SPARK-34306][SQL][PYTHON][R] Use Snake naming rule across the function APIs 2021-02-02 09:29:40 +09:00
sql-migration-guide.md [SPARK-34649][SQL][DOCS] org.apache.spark.sql.DataFrameNaFunctions.replace() fails for column name having a dot 2021-03-09 11:47:01 +00:00
sql-migration-old.md [SPARK-29052][DOCS][ML][PYTHON][CORE][R][SQL][SS] Create a Migration Guide tap in Spark documentation 2019-09-15 11:17:30 -07:00
sql-performance-tuning.md [MINOR][SQL][DOCS] Fix some wrong default values in SQL tuning guide's AQE section 2021-03-03 15:00:09 +09:00
sql-programming-guide.md [SPARK-30803][DOCS] Fix the home page link for Scala API document 2020-02-16 09:55:03 -06:00
sql-pyspark-pandas-with-arrow.md [SPARK-32183][DOCS][PYTHON] User Guide - PySpark Usage Guide for Pandas with Apache Arrow 2020-08-28 15:09:06 +09:00
sql-ref-ansi-compliance.md [SPARK-34742][SQL] ANSI mode: Abs throws exception if input is out of range 2021-03-17 06:57:25 +00:00
sql-ref-datatypes.md [MINOR][DOCS] Fix typos in sql-ref-datatypes.md 2021-01-18 13:18:03 +09:00
sql-ref-datetime-pattern.md [SPARK-32683][DOCS][SQL] Fix doc error and add migration guide for datetime pattern F 2020-08-25 13:17:03 +00:00
sql-ref-functions-builtin.md [SPARK-31636][SQL][DOCS] Remove HTML syntax in SQL reference 2020-05-10 12:57:25 -05:00
sql-ref-functions-udf-aggregate.md [SPARK-31636][SQL][DOCS] Remove HTML syntax in SQL reference 2020-05-10 12:57:25 -05:00
sql-ref-functions-udf-hive.md [SPARK-31636][SQL][DOCS] Remove HTML syntax in SQL reference 2020-05-10 12:57:25 -05:00
sql-ref-functions-udf-scalar.md [SPARK-31636][SQL][DOCS] Remove HTML syntax in SQL reference 2020-05-10 12:57:25 -05:00
sql-ref-functions.md [MINOR][DOCS] Fix typo in documents 2020-05-04 16:53:50 +09:00
sql-ref-identifier.md [SPARK-31636][SQL][DOCS] Remove HTML syntax in SQL reference 2020-05-10 12:57:25 -05:00
sql-ref-literals.md [SPARK-32207][SQL] Support 'F'-suffixed Float Literals 2020-07-09 19:45:16 -07:00
sql-ref-null-semantics.md [SPARK-33246][SQL][DOCS] Correct documentation for null semantics of "NULL AND False" 2020-10-28 08:36:14 +09:00
sql-ref-syntax-aux-analyze-table.md [SPARK-33687][SQL] Support analyze all tables in a specific database 2021-03-01 09:06:47 +09:00
sql-ref-syntax-aux-analyze-tables.md [SPARK-33687][SQL] Support analyze all tables in a specific database 2021-03-01 09:06:47 +09:00
sql-ref-syntax-aux-analyze.md [SPARK-33687][SQL] Support analyze all tables in a specific database 2021-03-01 09:06:47 +09:00
sql-ref-syntax-aux-cache-cache-table.md [SPARK-32517][CORE] Add StorageLevel.DISK_ONLY_3 2020-08-10 07:33:06 -07:00
sql-ref-syntax-aux-cache-clear-cache.md [SPARK-31999][SQL] Add REFRESH FUNCTION command 2020-07-22 19:05:50 +00:00
sql-ref-syntax-aux-cache-refresh-function.md [SPARK-31999][SQL] Add REFRESH FUNCTION command 2020-07-22 19:05:50 +00:00
sql-ref-syntax-aux-cache-refresh-table.md [SPARK-31999][SQL] Add REFRESH FUNCTION command 2020-07-22 19:05:50 +00:00
sql-ref-syntax-aux-cache-refresh.md [SPARK-31999][SQL] Add REFRESH FUNCTION command 2020-07-22 19:05:50 +00:00
sql-ref-syntax-aux-cache-uncache-table.md [SPARK-31999][SQL] Add REFRESH FUNCTION command 2020-07-22 19:05:50 +00:00
sql-ref-syntax-aux-cache.md [SPARK-31999][SQL] Add REFRESH FUNCTION command 2020-07-22 19:05:50 +00:00
sql-ref-syntax-aux-conf-mgmt-reset.md [SPARK-32406][SQL] Make RESET syntax support single configuration reset 2020-07-24 09:13:26 -07:00
sql-ref-syntax-aux-conf-mgmt-set-timezone.md [MINOR] Spelling bin core docs external mllib repl 2020-11-30 13:59:51 +09:00
sql-ref-syntax-aux-conf-mgmt-set.md [SPARK-31636][SQL][DOCS] Remove HTML syntax in SQL reference 2020-05-10 12:57:25 -05:00
sql-ref-syntax-aux-conf-mgmt.md [SPARK-32272][SQL] Add SQL standard command SET TIME ZONE 2020-07-16 13:01:53 +00:00
sql-ref-syntax-aux-describe-database.md [SPARK-31636][SQL][DOCS] Remove HTML syntax in SQL reference 2020-05-10 12:57:25 -05:00
sql-ref-syntax-aux-describe-function.md [SPARK-31636][SQL][DOCS] Remove HTML syntax in SQL reference 2020-05-10 12:57:25 -05:00
sql-ref-syntax-aux-describe-query.md [SPARK-31636][SQL][DOCS] Remove HTML syntax in SQL reference 2020-05-10 12:57:25 -05:00
sql-ref-syntax-aux-describe-table.md [SPARK-31636][SQL][DOCS] Remove HTML syntax in SQL reference 2020-05-10 12:57:25 -05:00
sql-ref-syntax-aux-describe.md [SPARK-31383][SQL][DOC] Clean up the SQL documents in docs/sql-ref* 2020-04-12 23:40:36 -05:00
sql-ref-syntax-aux-resource-mgmt-add-archive.md [SPARK-34603][SQL] Support ADD ARCHIVE and LIST ARCHIVES command 2021-03-09 21:28:35 +09:00
sql-ref-syntax-aux-resource-mgmt-add-file.md [SPARK-34603][SQL] Support ADD ARCHIVE and LIST ARCHIVES command 2021-03-09 21:28:35 +09:00
sql-ref-syntax-aux-resource-mgmt-add-jar.md [SPARK-34603][SQL] Support ADD ARCHIVE and LIST ARCHIVES command 2021-03-09 21:28:35 +09:00
sql-ref-syntax-aux-resource-mgmt-list-archive.md [SPARK-34603][SQL] Support ADD ARCHIVE and LIST ARCHIVES command 2021-03-09 21:28:35 +09:00
sql-ref-syntax-aux-resource-mgmt-list-file.md [SPARK-34603][SQL] Support ADD ARCHIVE and LIST ARCHIVES command 2021-03-09 21:28:35 +09:00
sql-ref-syntax-aux-resource-mgmt-list-jar.md [SPARK-34603][SQL] Support ADD ARCHIVE and LIST ARCHIVES command 2021-03-09 21:28:35 +09:00
sql-ref-syntax-aux-resource-mgmt.md [SPARK-34603][SQL] Support ADD ARCHIVE and LIST ARCHIVES command 2021-03-09 21:28:35 +09:00
sql-ref-syntax-aux-show-columns.md [SPARK-31636][SQL][DOCS] Remove HTML syntax in SQL reference 2020-05-10 12:57:25 -05:00
sql-ref-syntax-aux-show-create-table.md [SPARK-31636][SQL][DOCS] Remove HTML syntax in SQL reference 2020-05-10 12:57:25 -05:00
sql-ref-syntax-aux-show-databases.md [SPARK-31636][SQL][DOCS] Remove HTML syntax in SQL reference 2020-05-10 12:57:25 -05:00
sql-ref-syntax-aux-show-functions.md [SPARK-31636][SQL][DOCS] Remove HTML syntax in SQL reference 2020-05-10 12:57:25 -05:00
sql-ref-syntax-aux-show-partitions.md [SPARK-31636][SQL][DOCS] Remove HTML syntax in SQL reference 2020-05-10 12:57:25 -05:00
sql-ref-syntax-aux-show-table.md [SPARK-32887][DOC] Correct the typo for SHOW TABLE 2020-09-17 09:25:17 -07:00
sql-ref-syntax-aux-show-tables.md [SPARK-31636][SQL][DOCS] Remove HTML syntax in SQL reference 2020-05-10 12:57:25 -05:00
sql-ref-syntax-aux-show-tblproperties.md [SPARK-31636][SQL][DOCS] Remove HTML syntax in SQL reference 2020-05-10 12:57:25 -05:00
sql-ref-syntax-aux-show-views.md [SPARK-31636][SQL][DOCS] Remove HTML syntax in SQL reference 2020-05-10 12:57:25 -05:00
sql-ref-syntax-aux-show.md [SPARK-31636][SQL][DOCS] Remove HTML syntax in SQL reference 2020-05-10 12:57:25 -05:00
sql-ref-syntax-aux.md [SPARK-31383][SQL][DOC] Clean up the SQL documents in docs/sql-ref* 2020-04-12 23:40:36 -05:00
sql-ref-syntax-ddl-alter-database.md [SPARK-31636][SQL][DOCS] Remove HTML syntax in SQL reference 2020-05-10 12:57:25 -05:00
sql-ref-syntax-ddl-alter-table.md [SPARK-33474][SQL] Support TypeConstructed partition spec value 2021-03-03 16:48:50 +09:00
sql-ref-syntax-ddl-alter-view.md [SPARK-34401][SQL][DOCS] Update docs about altering cached tables/views 2021-02-22 04:32:09 +00:00
sql-ref-syntax-ddl-create-database.md [SPARK-31636][SQL][DOCS] Remove HTML syntax in SQL reference 2020-05-10 12:57:25 -05:00
sql-ref-syntax-ddl-create-function.md [SQL][DOC][MINOR] Corrects input table names in the examples of CREATE FUNCTION doc 2020-10-01 20:50:16 +09:00
sql-ref-syntax-ddl-create-table-datasource.md [SPARK-31753][SQL][DOCS][FOLLOW-UP] Add missing keywords in the SQL docs 2020-10-01 08:15:53 +09:00
sql-ref-syntax-ddl-create-table-hiveformat.md [MINOR] Spelling bin core docs external mllib repl 2020-11-30 13:59:51 +09:00
sql-ref-syntax-ddl-create-table-like.md [SPARK-31636][SQL][DOCS] Remove HTML syntax in SQL reference 2020-05-10 12:57:25 -05:00
sql-ref-syntax-ddl-create-table.md [SPARK-31636][SQL][DOCS] Remove HTML syntax in SQL reference 2020-05-10 12:57:25 -05:00
sql-ref-syntax-ddl-create-view.md [SPARK-31636][SQL][DOCS] Remove HTML syntax in SQL reference 2020-05-10 12:57:25 -05:00
sql-ref-syntax-ddl-drop-database.md [SPARK-31636][SQL][DOCS] Remove HTML syntax in SQL reference 2020-05-10 12:57:25 -05:00
sql-ref-syntax-ddl-drop-function.md [SPARK-31636][SQL][DOCS] Remove HTML syntax in SQL reference 2020-05-10 12:57:25 -05:00
sql-ref-syntax-ddl-drop-table.md [SPARK-34401][SQL][DOCS] Update docs about altering cached tables/views 2021-02-22 04:32:09 +00:00
sql-ref-syntax-ddl-drop-view.md [SPARK-31636][SQL][DOCS] Remove HTML syntax in SQL reference 2020-05-10 12:57:25 -05:00
sql-ref-syntax-ddl-repair-table.md [SPARK-31891][SQL][DOCS][FOLLOWUP] Fix typo in the description of MSCK REPAIR TABLE 2021-02-24 21:13:58 +09:00
sql-ref-syntax-ddl-truncate-table.md [SPARK-34401][SQL][DOCS] Update docs about altering cached tables/views 2021-02-22 04:32:09 +00:00
sql-ref-syntax-ddl-usedb.md [SPARK-32171][SQL][DOCS] Change file locations for use db and refresh table 2020-07-04 19:01:07 -07:00
sql-ref-syntax-ddl.md [SPARK-32171][SQL][DOCS] Change file locations for use db and refresh table 2020-07-04 19:01:07 -07:00
sql-ref-syntax-dml-insert-into.md [SPARK-33474][SQL] Support TypeConstructed partition spec value 2021-03-03 16:48:50 +09:00
sql-ref-syntax-dml-insert-overwrite-directory-hive.md [SPARK-31636][SQL][DOCS] Remove HTML syntax in SQL reference 2020-05-10 12:57:25 -05:00
sql-ref-syntax-dml-insert-overwrite-directory.md [SPARK-31636][SQL][DOCS] Remove HTML syntax in SQL reference 2020-05-10 12:57:25 -05:00
sql-ref-syntax-dml-insert-overwrite-table.md [SPARK-33474][SQL] Support TypeConstructed partition spec value 2021-03-03 16:48:50 +09:00
sql-ref-syntax-dml-insert.md [SPARK-31636][SQL][DOCS] Remove HTML syntax in SQL reference 2020-05-10 12:57:25 -05:00
sql-ref-syntax-dml-load.md [SPARK-34401][SQL][DOCS] Update docs about altering cached tables/views 2021-02-22 04:32:09 +00:00
sql-ref-syntax-dml.md [SPARK-31636][SQL][DOCS] Remove HTML syntax in SQL reference 2020-05-10 12:57:25 -05:00
sql-ref-syntax-qry-explain.md [SPARK-31636][SQL][DOCS] Remove HTML syntax in SQL reference 2020-05-10 12:57:25 -05:00
sql-ref-syntax-qry-select-case.md [SPARK-31753][SQL][DOCS] Add missing keywords in the SQL docs 2020-07-28 09:41:53 +09:00
sql-ref-syntax-qry-select-clusterby.md [SPARK-31753][SQL][DOCS] Add missing keywords in the SQL docs 2020-07-28 09:41:53 +09:00
sql-ref-syntax-qry-select-cte.md [SPARK-31636][SQL][DOCS] Remove HTML syntax in SQL reference 2020-05-10 12:57:25 -05:00
sql-ref-syntax-qry-select-distribute-by.md [SPARK-31753][SQL][DOCS] Add missing keywords in the SQL docs 2020-07-28 09:41:53 +09:00
sql-ref-syntax-qry-select-file.md [SPARK-33264][SQL][DOCS] Add a dedicated page for SQL-on-file in SQL documents 2020-10-28 11:21:35 +09:00
sql-ref-syntax-qry-select-groupby.md [MINOR] Spelling bin core docs external mllib repl 2020-11-30 13:59:51 +09:00
sql-ref-syntax-qry-select-having.md [SPARK-31753][SQL][DOCS] Add missing keywords in the SQL docs 2020-07-28 09:41:53 +09:00
sql-ref-syntax-qry-select-hints.md [MINOR][DOCS] fix typo for docs,log message and comments 2020-08-22 06:45:35 +09:00
sql-ref-syntax-qry-select-inline-table.md [SPARK-31636][SQL][DOCS] Remove HTML syntax in SQL reference 2020-05-10 12:57:25 -05:00
sql-ref-syntax-qry-select-join.md [SPARK-31866][SQL][DOCS] Add COALESCE/REPARTITION/REPARTITION_BY_RANGE Hints to SQL Reference 2020-05-30 14:51:45 -05:00
sql-ref-syntax-qry-select-lateral-view.md [MINOR] Spelling bin core docs external mllib repl 2020-11-30 13:59:51 +09:00
sql-ref-syntax-qry-select-like.md [SPARK-33977][SQL][DOCS] Add doc for "'like any' and 'like all' operators" 2021-01-06 21:14:45 +09:00
sql-ref-syntax-qry-select-limit.md [SPARK-31753][SQL][DOCS] Add missing keywords in the SQL docs 2020-07-28 09:41:53 +09:00
sql-ref-syntax-qry-select-orderby.md [MINOR] Spelling bin core docs external mllib repl 2020-11-30 13:59:51 +09:00
sql-ref-syntax-qry-select-pivot.md [SPARK-31753][SQL][DOCS] Add missing keywords in the SQL docs 2020-07-28 09:41:53 +09:00
sql-ref-syntax-qry-select-sampling.md [SPARK-31866][SQL][DOCS] Add COALESCE/REPARTITION/REPARTITION_BY_RANGE Hints to SQL Reference 2020-05-30 14:51:45 -05:00
sql-ref-syntax-qry-select-setops.md [SPARK-31636][SQL][DOCS] Remove HTML syntax in SQL reference 2020-05-10 12:57:25 -05:00
sql-ref-syntax-qry-select-sortby.md [SPARK-31753][SQL][DOCS] Add missing keywords in the SQL docs 2020-07-28 09:41:53 +09:00
sql-ref-syntax-qry-select-subqueries.md [SPARK-28734][DOC] Initial table of content in the left hand side bar for SQL doc 2019-08-18 23:17:50 -07:00
sql-ref-syntax-qry-select-tvf.md [SPARK-32552][SQL][DOCS] Complete the documentation for Table-valued Function 2020-08-24 09:43:41 +09:00
sql-ref-syntax-qry-select-where.md [SPARK-31753][SQL][DOCS] Add missing keywords in the SQL docs 2020-07-28 09:41:53 +09:00
sql-ref-syntax-qry-select-window.md [SPARK-31866][SQL][DOCS] Add COALESCE/REPARTITION/REPARTITION_BY_RANGE Hints to SQL Reference 2020-05-30 14:51:45 -05:00
sql-ref-syntax-qry-select.md [SPARK-33818][SQL][DOC] Add descriptions about spark.sql.parser.quotedRegexColumnNames in the SQL documents 2021-01-07 18:55:27 -08:00
sql-ref-syntax-qry.md [SPARK-33264][SQL][DOCS] Add a dedicated page for SQL-on-file in SQL documents 2020-10-28 11:21:35 +09:00
sql-ref-syntax.md [SPARK-33687][SQL] Support analyze all tables in a specific database 2021-03-01 09:06:47 +09:00
sql-ref.md [MINOR][DOCS] fix typo for docs,log message and comments 2020-08-22 06:45:35 +09:00
ss-migration-guide.md [SPARK-32032][SS] Avoid infinite wait in driver because of KafkaConsumer.poll(long) API 2020-12-01 20:34:00 +09:00
storage-openstack-swift.md [SPARK-26918][DOCS] All .md should have ASF license header 2019-03-30 19:49:45 -05:00
streaming-custom-receivers.md [SPARK-30803][DOCS] Fix the home page link for Scala API document 2020-02-16 09:55:03 -06:00
streaming-kafka-0-10-integration.md [MINOR][DOC][SQL][CORE] Fix typo in document and comments 2019-12-21 14:08:58 -08:00
streaming-kafka-integration.md [SPARK-30803][DOCS] Fix the home page link for Scala API document 2020-02-16 09:55:03 -06:00
streaming-kinesis-integration.md [SPARK-32035][DOCS][EXAMPLES] Fixed typos involving AWS Access, Secret, & Sessions tokens 2020-07-09 10:35:21 -07:00
streaming-programming-guide.md [SPARK-32036] Replace references to blacklist/whitelist language with more appropriate terminology, excluding the blacklisting feature 2020-07-15 11:40:55 -05:00
structured-streaming-kafka-integration.md [MINOR][SS] Add some description about auto reset and data loss note to SS doc 2021-01-11 11:47:07 -08:00
structured-streaming-programming-guide.md [SPARK-34471][SS][DOCS] Document Streaming Table APIs in Structured Streaming Programming Guide 2021-02-20 15:54:43 +09:00
submitting-applications.md [DOC][MINOR] pySpark usage - removed repeated keyword causing confusion 2020-10-08 07:52:00 -05:00
tuning.md [SPARK-32674][DOC] Add suggestion for parallel directory listing in tuning doc 2020-08-21 16:48:54 +09:00
web-ui.md [SPARK-31792][SS][DOC][FOLLOW-UP] Rephrase the description for some operations 2020-08-22 21:32:23 +09:00

license
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Welcome to the Spark documentation!

This readme will walk you through navigating and building the Spark documentation, which is included here with the Spark source code. You can also find documentation specific to release versions of Spark at https://spark.apache.org/documentation.html.

Read on to learn more about viewing documentation in plain text (i.e., markdown) or building the documentation yourself. Why build it yourself? So that you have the docs that correspond to whichever version of Spark you currently have checked out of revision control.

Prerequisites

The Spark documentation build uses a number of tools to build HTML docs and API docs in Scala, Java, Python, R and SQL.

You need to have Ruby and Python installed. Make sure the bundle command is available, if not install the Gem containing it:

$ sudo gem install bundler

After this all the required ruby dependencies can be installed from the docs/ directory via the Bundler:

$ cd docs
$ bundle install

Note: If you are on a system with both Ruby 1.9 and Ruby 2.0 you may need to replace gem with gem2.0.

R Documentation

If you'd like to generate R documentation, you'll need to install Pandoc and install these libraries:

$ sudo Rscript -e 'install.packages(c("knitr", "devtools", "testthat", "rmarkdown"), repos="https://cloud.r-project.org/")'
$ sudo Rscript -e 'devtools::install_version("roxygen2", version = "7.1.1", repos="https://cloud.r-project.org/")'

Note: Other versions of roxygen2 might work in SparkR documentation generation but RoxygenNote field in $SPARK_HOME/R/pkg/DESCRIPTION is 7.1.1, which is updated if the version is mismatched.

API Documentation

To generate API docs for any language, you'll need to install these libraries:

$ sudo pip install 'sphinx<3.1.0' mkdocs numpy pydata_sphinx_theme ipython nbsphinx numpydoc

Generating the Documentation HTML

We include the Spark documentation as part of the source (as opposed to using a hosted wiki, such as the github wiki, as the definitive documentation) to enable the documentation to evolve along with the source code and be captured by revision control (currently git). This way the code automatically includes the version of the documentation that is relevant regardless of which version or release you have checked out or downloaded.

In this directory you will find text files formatted using Markdown, with an ".md" suffix. You can read those text files directly if you want. Start with index.md.

Execute bundle exec jekyll build from the docs/ directory to compile the site. Compiling the site with Jekyll will create a directory called _site containing index.html as well as the rest of the compiled files.

$ cd docs
$ bundle exec jekyll build

You can modify the default Jekyll build as follows:

# Skip generating API docs (which takes a while)
$ SKIP_API=1 bundle exec jekyll build

# Serve content locally on port 4000
$ bundle exec jekyll serve --watch

# Build the site with extra features used on the live page
$ PRODUCTION=1 bundle exec jekyll build

API Docs (Scaladoc, Javadoc, Sphinx, roxygen2, MkDocs)

You can build just the Spark scaladoc and javadoc by running ./build/sbt unidoc from the $SPARK_HOME directory.

Similarly, you can build just the PySpark docs by running make html from the $SPARK_HOME/python/docs directory. Documentation is only generated for classes that are listed as public in __init__.py. The SparkR docs can be built by running $SPARK_HOME/R/create-docs.sh, and the SQL docs can be built by running $SPARK_HOME/sql/create-docs.sh after building Spark first.

When you run bundle exec jekyll build in the docs directory, it will also copy over the scaladoc and javadoc for the various Spark subprojects into the docs directory (and then also into the _site directory). We use a jekyll plugin to run ./build/sbt unidoc before building the site so if you haven't run it (recently) it may take some time as it generates all of the scaladoc and javadoc using Unidoc. The jekyll plugin also generates the PySpark docs using Sphinx, SparkR docs using roxygen2 and SQL docs using MkDocs.

NOTE: To skip the step of building and copying over the Scala, Java, Python, R and SQL API docs, run SKIP_API=1 bundle exec jekyll build. In addition, SKIP_SCALADOC=1, SKIP_PYTHONDOC=1, SKIP_RDOC=1 and SKIP_SQLDOC=1 can be used to skip a single step of the corresponding language. SKIP_SCALADOC indicates skipping both the Scala and Java docs.

Automatically Rebuilding API Docs

bundle exec jekyll serve --watch will only watch what's in docs/, and it won't follow symlinks. That means it won't monitor your API docs under python/docs or elsewhere.

To work around this limitation for Python, install entr and run the following in a separate shell:

cd "$SPARK_HOME/python/docs"
find .. -type f -name '*.py' \
| entr -s 'make html && cp -r _build/html/. ../../docs/api/python'

Whenever there is a change to your Python code, entr will automatically rebuild the Python API docs and copy them to docs/, thus triggering a Jekyll update.