Skip to content

Doc/sql compatibility#14

Draft
dai-chen wants to merge 1 commit into
mainfrom
doc/sql-compatibility
Draft

Doc/sql compatibility#14
dai-chen wants to merge 1 commit into
mainfrom
doc/sql-compatibility

Conversation

@dai-chen
Copy link
Copy Markdown
Owner

@dai-chen dai-chen commented May 4, 2026

Description

[Describe what this change achieves]

Related Issues

Resolves #[Issue number to be closed when this PR is merged]

Check List

  • New functionality includes testing.
  • New functionality has been documented.
  • New functionality has javadoc added.
  • New functionality has a user manual doc added.
  • New PPL command checklist all confirmed.
  • API changes companion pull request created.
  • Commits are signed per the DCO using --signoff or -s.
  • Public documentation issue/PR created.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Comment thread docs/user/general/sql-compatibility.rst Outdated
Comment thread docs/user/general/sql-compatibility.rst Outdated
Comment thread docs/user/general/sql-compatibility.rst Outdated
Comment thread docs/user/general/sql-compatibility.rst Outdated
Comment thread docs/user/general/sql-compatibility.rst
Comment thread docs/user/general/sql-compatibility.rst Outdated
Comment thread docs/user/general/sql-compatibility.rst Outdated
dai-chen added a commit that referenced this pull request May 4, 2026
Apply review feedback from PR #14:

- Remove the 'document follows the structure of MySQL / PostgreSQL'
  reference paragraph from the Introduction.
- Drop all in-body mentions of the analytics-engine (mustang)
  integration; the note simply states the unified SQL path is not
  enabled by default.
- Mention 'Calcite' only once, in the Introduction.
- Clarify LIMIT phrasing: it is a MySQL/PostgreSQL extension and not
  part of standard ANSI SQL (which uses
  OFFSET m ROWS FETCH FIRST n ROWS ONLY).
- Fold the 'Named-argument syntax for search functions' bullet into
  the preceding 'Relevance search functions' bullet; the merged
  example now shows both positional and named-argument forms.
- Remove the duplicate 'Lenient type coercion' and
  'Backslash-escaped string literals' bullets from the Extensions
  section; both are deliberate deviations from standard SQL and
  remain documented in 'Differences from Standard SQL'.
- Remove the 'ORDER BY NESTED()' row from Clause and syntactic
  differences; the NESTED() function is already covered under
  OpenSearch-specific functions.

Signed-off-by: Chen Dai <daichen@amazon.com>
Add a user-facing SQL compatibility reference at
docs/user/general/sql-compatibility.rst, modeled on MySQL's Standards
Compliance and PostgreSQL's SQL Conformance pages.

The new page covers:

* SQL standards compliance (ANSI SQL-92 plus selected features from
  SQL:1999, SQL:2003, SQL:2008, and SQL:2016).
* Extensions to standard SQL that the new engine accepts (hyphenated
  and backtick-quoted identifiers, GROUP BY by alias or ordinal,
  LIMIT N, optional FROM, relevance search functions).
* Deliberate deviations from standard SQL, each driven by backward
  compatibility with OpenSearch SQL V2 (double-quoted strings,
  GROUP BY alias resolution, lenient type coercion, backslash
  escapes, MATCH as a non-reserved identifier).
* A 'Migrating from SQL V2' chapter enumerating constructs that V2
  accepted but the new engine rejects: lexical and literal
  differences, identifier differences, type-system differences, an
  extensive function-differences catalogue (~90 V2 functions grouped
  by purpose with standard SQL equivalents where one exists), clause
  and syntactic differences, metadata-statement differences, and
  output-format differences.

Wire the new page into the Sphinx TOC under Language Structure.

Signed-off-by: Chen Dai <daichen@amazon.com>
@dai-chen dai-chen force-pushed the doc/sql-compatibility branch from dc89743 to d626331 Compare May 4, 2026 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant