spark-instrumented-optimizer/docs
Liang-Chi Hsieh 2c64b731ae
[SPARK-33259][SS] Disable streaming query with possible correctness issue by default
### What changes were proposed in this pull request?

This patch proposes to disable the streaming query with possible correctness issue in chained stateful operators. The behavior can be controlled by a SQL config, so if users understand the risk and still want to run the query, they can disable the check.

### Why are the changes needed?

The possible correctness in chained stateful operators in streaming query is not straightforward for users. From users perspective, it will be considered as a Spark bug. It is also possible the worse case, users are not aware of the correctness issue and use wrong results.

A better approach should be to disable such queries and let users choose to run the query if they understand there is such risk, instead of implicitly running the query and let users to find out correctness issue by themselves and report this known to Spark community.

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

Yes. Streaming query with possible correctness issue will be blocked to run, except for users explicitly disable the SQL config.

### How was this patch tested?

Unit test.

Closes #30210 from viirya/SPARK-33259.

Authored-by: Liang-Chi Hsieh <viirya@gmail.com>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
2020-11-12 15:31:57 -08:00
..
_data [SPARK-33264][SQL][DOCS] Add a dedicated page for SQL-on-file in SQL documents 2020-10-28 11:21: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-32723][WEBUI] Upgrade to jQuery 3.5.1 2020-09-30 21:30:17 -07:00
_plugins [SPARK-32179][SPARK-32188][PYTHON][DOCS] Replace and redesign the documentation base 2020-07-27 17:49:21 +09:00
css [SPARK-30654] Bootstrap4 docs upgrade 2020-08-27 09:03:39 -05: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 [SPARK-32584][PYTHON][DOCS] Exclude _images and _sources that are generated by Sphinx in Jekyll build 2020-08-11 15:15:30 +09:00
building-spark.md [SPARK-33046][DOCS] Update how to build doc for Scala 2.13 with sbt 2020-10-01 18:01:23 -05:00
cloud-integration.md [MINOR][DOCS] Fix links to Cloud Storage connectors docs 2020-07-19 12:19:36 -07:00
cluster-overview.md [SPARK-26918][DOCS] All .md should have ASF license header 2019-03-30 19:49:45 -05:00
configuration.md [MINOR][DOC] spark.executor.memoryOverhead is not cluster-mode only 2020-11-12 18:53:06 +09: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-32160][CORE][PYSPARK][FOLLOWUP] Change the config name to switch allow/disallow SparkContext in executors 2020-08-04 12:45:06 +09:00
graphx-programming-guide.md [SPARK-30803][DOCS] Fix the home page link for Scala API document 2020-02-16 09:55:03 -06: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-32138] Drop Python 2.7, 3.4 and 3.5 2020-07-14 11:22:44 +09:00
job-scheduling.md [MINOR][DOCS] fix typo for docs,log message and comments 2020-08-22 06:45:35 +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 typo in documents 2020-05-04 16:53:50 +09:00
ml-clustering.md [SPARK-30803][DOCS] Fix the home page link for Scala API document 2020-02-16 09:55:03 -06:00
ml-collaborative-filtering.md [SPARK-30803][DOCS] Fix the home page link for Scala API document 2020-02-16 09:55:03 -06: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-31708][ML][DOCS] Add docs and examples for ANOVASelector and FValueSelector 2020-05-15 09:59:14 -05:00
ml-frequent-pattern-mining.md [SPARK-30803][DOCS] Fix the home page link for Scala API document 2020-02-16 09:55:03 -06: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 [SPARK-30934][ML][DOCS] Update ml-guide and ml-migration-guide for 3.0 release 2020-03-07 18:09:00 -06:00
ml-pipeline.md [SPARK-30803][DOCS] Fix the home page link for Scala API document 2020-02-16 09:55:03 -06:00
ml-statistics.md [SPARK-31708][ML][DOCS] Add docs and examples for ANOVASelector and FValueSelector 2020-05-15 09:59:14 -05: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-30933][ML][DOCS] ML, GraphX 3.0 QA: Update user guide for new features & APIs 2020-03-18 13:21:24 -05: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 [SPARK-30803][DOCS] Fix the home page link for Scala API document 2020-02-16 09:55:03 -06:00
mllib-collaborative-filtering.md [SPARK-30803][DOCS] Fix the home page link for Scala API document 2020-02-16 09:55:03 -06:00
mllib-data-types.md [SPARK-30803][DOCS] Fix the home page link for Scala API document 2020-02-16 09:55:03 -06:00
mllib-decision-tree.md [SPARK-30803][DOCS] Fix the home page link for Scala API document 2020-02-16 09:55:03 -06:00
mllib-dimensionality-reduction.md [SPARK-30803][DOCS] Fix the home page link for Scala API document 2020-02-16 09:55:03 -06:00
mllib-ensembles.md [SPARK-30803][DOCS] Fix the home page link for Scala API document 2020-02-16 09:55:03 -06:00
mllib-evaluation-metrics.md [SPARK-30803][DOCS] Fix the home page link for Scala API document 2020-02-16 09:55:03 -06:00
mllib-feature-extraction.md [SPARK-30803][DOCS] Fix the home page link for Scala API document 2020-02-16 09:55:03 -06:00
mllib-frequent-pattern-mining.md [SPARK-30803][DOCS] Fix the home page link for Scala API document 2020-02-16 09:55:03 -06: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 [SPARK-30803][DOCS] Fix the home page link for Scala API document 2020-02-16 09:55:03 -06:00
mllib-linear-methods.md [SPARK-30803][DOCS] Fix the home page link for Scala API document 2020-02-16 09:55:03 -06:00
mllib-naive-bayes.md [SPARK-30803][DOCS] Fix the home page link for Scala API document 2020-02-16 09:55:03 -06: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 [SPARK-30803][DOCS] Fix the home page link for Scala API document 2020-02-16 09:55:03 -06:00
monitoring.md [SPARK-31711][CORE] Register the executor source with the metrics system when running in local mode 2020-11-04 16:48:55 -06: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-32191][PYTHON][DOCS] Port migration guide for PySpark docs 2020-08-10 15:41:32 +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-33243][PYTHON][BUILD] Add numpydoc into documentation dependency 2020-10-27 14:03:57 +09:00
running-on-kubernetes.md [SPARK-30821][K8S] Handle executor failure with multiple containers 2020-10-24 09:55:57 -07:00
running-on-mesos.md [SPARK-32004][ALL] Drop references to slave 2020-07-13 14:05:33 -07:00
running-on-yarn.md [SPARK-33397][YARN][DOC] Fix generating md to html for available-patterns-for-shs-custom-executor-log-url 2020-11-10 10:15:55 +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 [SPARK-32478][R][SQL] Error message to show the schema mismatch in gapply with Arrow vectorization 2020-07-30 15:16:02 +09:00
sql-data-sources-avro.md [MINOR][DOCS] Fix the description about to_avro and from_avro functions 2020-10-21 00:36:45 +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-30803][DOCS] Fix the home page link for Scala API document 2020-02-16 09:55:03 -06:00
sql-data-sources-hive-tables.md [SPARK-31381][SPARK-29245][SQL] Upgrade built-in Hive 2.3.6 to 2.3.7 2020-04-20 13:38:24 -07:00
sql-data-sources-jdbc.md [SPARK-31319][SQL][FOLLOW-UP] Add a SQL example for UDAF 2020-04-14 13:29:44 +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-31295][DOC] Supplement version for configuration appear in doc 2020-03-31 12:33:46 +09:00
sql-data-sources-parquet.md [SPARK-31319][SQL][FOLLOW-UP] Add a SQL example for UDAF 2020-04-14 13:29:44 +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-29458][SQL][DOCS] Add a paragraph for scalar function in sql getting started 2020-04-28 11:17:45 -05:00
sql-migration-guide.md [SPARK-33290][SQL][DOCS][FOLLOW-UP] Update SQL migration guide 2020-11-05 10:09:28 -08: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 [SPARK-32674][DOC] Add suggestion for parallel directory listing in tuning doc 2020-08-21 16:48:54 +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-33386][SQL] Accessing array elements in ElementAt/Elt/GetArrayItem should failed if index is out of bound 2020-11-12 08:50:32 +00:00
sql-ref-datatypes.md [SPARK-31636][SQL][DOCS] Remove HTML syntax in SQL reference 2020-05-10 12:57:25 -05: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-31636][SQL][DOCS] Remove HTML syntax in SQL reference 2020-05-10 12:57:25 -05:00
sql-ref-syntax-aux-analyze.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-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 [SPARK-32272][SQL] Add SQL standard command SET TIME ZONE 2020-07-16 13:01:53 +00: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-file.md [SPARK-31636][SQL][DOCS] Remove HTML syntax in SQL reference 2020-05-10 12:57:25 -05:00
sql-ref-syntax-aux-resource-mgmt-add-jar.md [SPARK-31636][SQL][DOCS] Remove HTML syntax in SQL reference 2020-05-10 12:57:25 -05:00
sql-ref-syntax-aux-resource-mgmt-list-file.md [SPARK-31636][SQL][DOCS] Remove HTML syntax in SQL reference 2020-05-10 12:57:25 -05:00
sql-ref-syntax-aux-resource-mgmt-list-jar.md [SPARK-31636][SQL][DOCS] Remove HTML syntax in SQL reference 2020-05-10 12:57:25 -05:00
sql-ref-syntax-aux-resource-mgmt.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-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-31636][SQL][DOCS] Remove HTML syntax in SQL reference 2020-05-10 12:57:25 -05:00
sql-ref-syntax-ddl-alter-view.md [SPARK-31636][SQL][DOCS] Remove HTML syntax in SQL reference 2020-05-10 12:57:25 -05: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 [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-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-31636][SQL][DOCS] Remove HTML syntax in SQL reference 2020-05-10 12:57:25 -05: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-31636][SQL][DOCS] Remove HTML syntax in SQL reference 2020-05-10 12:57:25 -05:00
sql-ref-syntax-ddl-truncate-table.md [SPARK-31636][SQL][DOCS] Remove HTML syntax in SQL reference 2020-05-10 12:57:25 -05: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-31636][SQL][DOCS] Remove HTML syntax in SQL reference 2020-05-10 12:57:25 -05: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-31636][SQL][DOCS] Remove HTML syntax in SQL reference 2020-05-10 12:57:25 -05: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-31636][SQL][DOCS] Remove HTML syntax in SQL reference 2020-05-10 12:57:25 -05: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][DOCS] fix typo for docs,log message and comments 2020-08-22 06:45:35 +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 [SPARK-31753][SQL][DOCS] Add missing keywords in the SQL docs 2020-07-28 09:41:53 +09:00
sql-ref-syntax-qry-select-like.md [SPARK-32193][SQL][DOCS] Update regexp usage in SQL docs 2020-07-09 16:14:33 +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 [SPARK-31753][SQL][DOCS] Add missing keywords in the SQL docs 2020-07-28 09:41:53 +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-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.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-33264][SQL][DOCS] Add a dedicated page for SQL-on-file in SQL documents 2020-10-28 11:21:35 +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-33259][SS] Disable streaming query with possible correctness issue by default 2020-11-12 15:31:57 -08: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 [SPARK-32075][DOCS] Fix a few issues in parameters table 2020-06-24 13:39:55 +09:00
structured-streaming-programming-guide.md [MINOR][SS][DOCS] Update join type in stream static joins code examples 2020-11-05 16:22:31 +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. Also install the following libraries:

$ sudo gem install jekyll jekyll-redirect-from rouge

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 = "5.0.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 5.0.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 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
$ jekyll build

You can modify the default Jekyll build as follows:

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

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

# Build the site with extra features used on the live page
$ PRODUCTION=1 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 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 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

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.