This is an automated email from the ASF dual-hosted git repository.
xiong pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/calcite.git
The following commit(s) were added to refs/heads/main by this push:
new 4c839f6cc1 [CALCITE-6934] The examples for DDL extension on the
official website cannot run
4c839f6cc1 is described below
commit 4c839f6cc1c7d1b89094b3f7de2f752c7eb4546f
Author: zhuyufeng <[email protected]>
AuthorDate: Tue Apr 1 20:18:06 2025 +0800
[CALCITE-6934] The examples for DDL extension on the official website
cannot run
[CALCITE-6934] Fix wrong jdbc property value in DDL extensions examples
[CALCITE-6934] The examples for DDL extension on the official website
cannot run
[CALCITE-6934] The examples for DDL extension on the official website
cannot run
---
build.gradle.kts | 2 +-
site/_docs/adapter.md | 4 ++--
site/_docs/reference.md | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/build.gradle.kts b/build.gradle.kts
index 37f6cf196b..86be76ef0a 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -209,7 +209,7 @@ fun reportsForHumans() =
!(System.getenv()["CI"]?.toBoolean() ?: false)
val adaptersForSqlline = listOf(
":arrow", ":babel", ":cassandra", ":druid", ":elasticsearch",
":file", ":geode", ":innodb", ":kafka", ":mongodb",
- ":pig", ":piglet", ":plus", ":redis", ":spark", ":splunk")
+ ":pig", ":piglet", ":plus", ":redis", ":server", ":spark", ":splunk")
val dataSetsForSqlline = listOf(
"net.hydromatic:foodmart-data-hsqldb",
diff --git a/site/_docs/adapter.md b/site/_docs/adapter.md
index 1c2ef03b10..66e3667713 100644
--- a/site/_docs/adapter.md
+++ b/site/_docs/adapter.md
@@ -169,7 +169,7 @@ ## Server
Commands are described in the [SQL reference](reference.html#ddl-extensions).
To enable, include `calcite-server.jar` in your class path, and add
-`parserFactory=org.apache.calcite.sql.parser.ddl.SqlDdlParserImpl#FACTORY`
+`parserFactory=org.apache.calcite.server.ServerDdlExecutor#PARSER_FACTORY`
to the JDBC connect string (see connect string property
[parserFactory]({{ site.apiRoot
}}/org/apache/calcite/config/CalciteConnectionProperty.html#PARSER_FACTORY)).
Here is an example using the `sqlline` shell.
@@ -177,7 +177,7 @@ ## Server
{% highlight sql %}
$ ./sqlline
sqlline version 1.3.0
-> !connect
jdbc:calcite:parserFactory=org.apache.calcite.sql.parser.ddl.SqlDdlParserImpl#FACTORY
sa ""
+> !connect
jdbc:calcite:parserFactory=org.apache.calcite.server.ServerDdlExecutor#PARSER_FACTORY
sa ""
> CREATE TABLE t (i INTEGER, j VARCHAR(10));
No rows affected (0.293 seconds)
> INSERT INTO t VALUES (1, 'a'), (2, 'bc');
diff --git a/site/_docs/reference.md b/site/_docs/reference.md
index 8d5f20bc1c..f329d7ad0f 100644
--- a/site/_docs/reference.md
+++ b/site/_docs/reference.md
@@ -3570,7 +3570,7 @@ ### DDL Extensions
DDL extensions are only available in the calcite-server module.
To enable, include `calcite-server.jar` in your class path, and add
-`parserFactory=org.apache.calcite.sql.parser.ddl.SqlDdlParserImpl#FACTORY`
+`parserFactory=org.apache.calcite.server.ServerDdlExecutor#PARSER_FACTORY`
to the JDBC connect string (see connect string property
[parserFactory]({{ site.apiRoot
}}/org/apache/calcite/config/CalciteConnectionProperty.html#PARSER_FACTORY)).