spark-instrumented-optimizer/docs
Wenchen Fan 84db660ebe [SPARK-32251][SQL][DOCS][TESTS] Fix SQL keyword document
### What changes were proposed in this pull request?

This PR improves the test to make sure all the SQL keywords are documented correctly. It fixes several issues:
1. some keywords are not documented
2. some keywords are not ANSI SQL keywords but documented as reserved/non-reserved.

### Why are the changes needed?

To make sure the implementation matches the doc.

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

No

### How was this patch tested?

new test

Closes #29055 from cloud-fan/keyword.

Authored-by: Wenchen Fan <wenchen@databricks.com>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
2020-07-10 15:10:28 -07:00
..
_data [SPARK-32171][SQL][DOCS] Change file locations for use db and refresh table 2020-07-04 19:01:07 -07: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-30803][DOCS] Fix the home page link for Scala API document 2020-02-16 09:55:03 -06:00
_plugins [SPARK-31596][SQL][DOCS] Generate SQL Configurations from hive module to configuration doc 2020-04-29 15:34:45 +09:00
css [SPARK-31351][DOC] Migration Guide Auditing for Spark 3.0 Release 2020-04-08 12:27:40 +09:00
img [SPARK-31792][SS][DOCS] Introduce the structured streaming UI in the Web UI doc 2020-05-26 14:27:42 +09:00
js [SPARK-28004][UI] Update jquery to 3.4.1 2019-06-14 22:19:20 -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-32078][DOC] Add a redirect to sql-ref from sql-reference 2020-06-24 11:00:20 -07:00
api.md [SPARK-26918][DOCS] All .md should have ASF license header 2019-03-30 19:49:45 -05:00
building-spark.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
cloud-integration.md [SPARK-32035][DOCS][EXAMPLES] Fixed typos involving AWS Access, Secret, & Sessions tokens 2020-07-09 10:35:21 -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 [SPARK-31970][CORE] Make MDC configuration step be consistent between setLocalProperty and log4j.properties 2020-06-14 14:26:11 -07: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-16775][DOC][FOLLOW-UP] Add migration guide for removed accumulator v1 APIs 2020-04-23 10:59:35 +00: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-32073][R] Drop R < 3.5 support 2020-06-24 11:05:27 +09:00
job-scheduling.md [SPARK-22340][PYTHON] Add a mode to pin Python thread into JVM's 2019-11-08 06:44:58 +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 [SPARK-30803][DOCS] Fix the home page link for Scala API document 2020-02-16 09:55:03 -06: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-30934][ML][FOLLOW-UP] Update ml-guide to include MulticlassClassificationEvaluator weight support in highlights 2020-03-26 14:24:53 +08: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-31566][SQL][DOCS] Add SQL Rest API Documentation 2020-06-02 12:46:12 -07: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-31853][DOCS] Mention removal of params mixins setter in migration guide 2020-06-03 18:06:13 -05:00
quick-start.md [MINOR][DOCS] Fix [[...]] to ... and <code>...</code> in documentation 2020-03-13 16:44:23 -07:00
rdd-programming-guide.md [MINOR][DOCS] Mention lack of RDD order preservation after deserialization 2020-05-12 08:27:43 -05:00
README.md Revert "[SPARK-30879][DOCS] Refine workflow for building docs" 2020-03-31 16:11:59 +09:00
running-on-kubernetes.md [MINOR][DOCS] Update running-on-kubernetes.md 2020-06-18 14:36:20 -07:00
running-on-mesos.md [SPARK-31109][MESOS][DOC] Add version information to the configuration of Mesos 2020-03-12 11:02:29 +09:00
running-on-yarn.md [SPARK-31960][YARN][BUILD] Only populate Hadoop classpath for no-hadoop build 2020-06-18 06:08:40 +00: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 [MINOR][DOCS] Fix a typo for a configuration property of resources allocation 2020-06-30 09:28:54 -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-31701][R][SQL] Bump up the minimum Arrow version as 0.15.1 in SparkR 2020-05-13 10:03:12 -07:00
sql-data-sources-avro.md [SPARK-31295][DOC] Supplement version for configuration appear in doc 2020-03-31 12:33:46 +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-31710][SQL][FOLLOWUP] Allow cast numeric to timestamp by default 2020-07-07 14:09:40 -07: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-31866][SQL][DOCS] Add COALESCE/REPARTITION/REPARTITION_BY_RANGE Hints to SQL Reference 2020-05-30 14:51:45 -05: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-30722][DOCS][FOLLOW-UP] Explicitly mention the same entire input/output length restriction of Series Iterator UDF 2020-04-09 16:46:27 +09:00
sql-ref-ansi-compliance.md [SPARK-32251][SQL][DOCS][TESTS] Fix SQL keyword document 2020-07-10 15:10:28 -07: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-31879][SQL][TEST-JAVA11] Make week-based pattern invalid for formatting too 2020-06-05 08:14:01 +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-31636][SQL][DOCS] Remove HTML syntax in SQL reference 2020-05-10 12:57:25 -05: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-32171][SQL][DOCS] Change file locations for use db and refresh table 2020-07-04 19:01:07 -07:00
sql-ref-syntax-aux-cache-clear-cache.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-aux-cache-refresh-table.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-aux-cache-refresh.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-aux-cache-uncache-table.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-aux-cache.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-aux-conf-mgmt-reset.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-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-31612][SQL][DOCS][FOLLOW-UP] Fix a few issues in SQL ref 2020-05-23 08:43:16 +09: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-31636][SQL][DOCS] Remove HTML syntax in SQL reference 2020-05-10 12:57:25 -05: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 [SPARK-31636][SQL][DOCS] Remove HTML syntax in SQL reference 2020-05-10 12:57:25 -05:00
sql-ref-syntax-ddl-create-table-datasource.md [SPARK-31707][SQL] Revert SPARK-30098 Use default datasource as provider for CREATE TABLE syntax 2020-05-17 02:27:23 +00:00
sql-ref-syntax-ddl-create-table-hiveformat.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-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-clusterby.md [SPARK-31636][SQL][DOCS] Remove HTML syntax in SQL reference 2020-05-10 12:57:25 -05: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-31636][SQL][DOCS] Remove HTML syntax in SQL reference 2020-05-10 12:57:25 -05:00
sql-ref-syntax-qry-select-groupby.md [SPARK-31636][SQL][DOCS] Remove HTML syntax in SQL reference 2020-05-10 12:57:25 -05:00
sql-ref-syntax-qry-select-having.md [SPARK-31636][SQL][DOCS] Remove HTML syntax in SQL reference 2020-05-10 12:57:25 -05:00
sql-ref-syntax-qry-select-hints.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-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-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-31636][SQL][DOCS] Remove HTML syntax in SQL reference 2020-05-10 12:57:25 -05:00
sql-ref-syntax-qry-select-orderby.md [SPARK-31636][SQL][DOCS] Remove HTML syntax in SQL reference 2020-05-10 12:57:25 -05: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-31636][SQL][DOCS] Remove HTML syntax in SQL reference 2020-05-10 12:57:25 -05: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-31636][SQL][DOCS] Remove HTML syntax in SQL reference 2020-05-10 12:57:25 -05:00
sql-ref-syntax-qry-select-where.md [SPARK-31636][SQL][DOCS] Remove HTML syntax in SQL reference 2020-05-10 12:57:25 -05: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-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.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.md [SPARK-32171][SQL][DOCS] Change file locations for use db and refresh table 2020-07-04 19:01:07 -07:00
sql-ref.md [SPARK-32078][DOC] Add a redirect to sql-ref from sql-reference 2020-06-24 11:00:20 -07:00
ss-migration-guide.md [SPARK-28199][SPARK-28199][SS][FOLLOWUP] Mention the change of into the SS migration guide 2020-06-09 04:52:48 +00: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-30803][DOCS] Fix the home page link for Scala API document 2020-02-16 09:55:03 -06: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 [SPARK-24634][SS][FOLLOWUP] Rename the variable from "numLateInputs" to "numRowsDroppedByWatermark" 2020-06-16 16:41:08 +09:00
submitting-applications.md [SPARK-28609][DOC] Fix broken styles/links and make up-to-date 2019-08-04 09:42:47 -07:00
tuning.md [SPARK-30803][DOCS] Fix the home page link for Scala API document 2020-02-16 09:55:03 -06:00
web-ui.md [MINOR][DOCS] Emphasize the Streaming tab is for DStream API 2020-06-19 12:17:40 +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 mkdocs numpy

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.