0001 ---
0002 layout: global
0003 title: SQL Reference
0004 displayTitle: SQL Reference
0005 license: |
0006 Licensed to the Apache Software Foundation (ASF) under one or more
0007 contributor license agreements. See the NOTICE file distributed with
0008 this work for additional information regarding copyright ownership.
0009 The ASF licenses this file to You under the Apache License, Version 2.0
0010 (the "License"); you may not use this file except in compliance with
0011 the License. You may obtain a copy of the License at
0012
0013 http://www.apache.org/licenses/LICENSE-2.0
0014
0015 Unless required by applicable law or agreed to in writing, software
0016 distributed under the License is distributed on an "AS IS" BASIS,
0017 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
0018 See the License for the specific language governing permissions and
0019 limitations under the License.
0020 ---
0021
0022 Spark SQL is Apache Spark's module for working with structured data. This guide is a reference for Structured Query Language (SQL) and includes syntax, semantics, keywords, and examples for common SQL usage. It contains information for the following topics:
0023
0024 * [ANSI Compliance](sql-ref-ansi-compliance.html)
0025 * [Data Types](sql-ref-datatypes.html)
0026 * [Datetime Pattern](sql-ref-datetime-pattern.html)
0027 * [Functions](sql-ref-functions.html)
0028 * [Built-in Functions](sql-ref-functions-builtin.html)
0029 * [Scalar User-Defined Functions (UDFs)](sql-ref-functions-udf-scalar.html)
0030 * [User-Defined Aggregate Functions (UDAFs)](sql-ref-functions-udf-aggregate.html)
0031 * [Integration with Hive UDFs/UDAFs/UDTFs](sql-ref-functions-udf-hive.html)
0032 * [Identifiers](sql-ref-identifier.html)
0033 * [Literals](sql-ref-literals.html)
0034 * [Null Semanitics](sql-ref-null-semantics.html)
0035 * [SQL Syntax](sql-ref-syntax.html)
0036 * [DDL Statements](sql-ref-syntax-ddl.html)
0037 * [DML Statements](sql-ref-syntax-dml.html)
0038 * [Data Retrieval Statements](sql-ref-syntax-qry.html)
0039 * [Auxiliary Statements](sql-ref-syntax-aux.html)