This is an automated email from the ASF dual-hosted git repository.
danny0405 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/calcite.git
The following commit(s) were added to refs/heads/master by this push:
new a8aeaa7 [doc] Improve document in adapter.md (moriarty01)
a8aeaa7 is described below
commit a8aeaa7f1d05e0860e6d5e4f9a1bc650f514bfa2
Author: ShuMingLi <[email protected]>
AuthorDate: Mon Sep 2 10:27:23 2019 +0800
[doc] Improve document in adapter.md (moriarty01)
close apache/calcite#1431
---
site/_docs/adapter.md | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/site/_docs/adapter.md b/site/_docs/adapter.md
index 3c6f5a5..feb357b 100644
--- a/site/_docs/adapter.md
+++ b/site/_docs/adapter.md
@@ -107,14 +107,14 @@ as implemented by Avatica's
To make a connection to a single schema based on a built-in schema type, you
don't need to specify
a model. For example,
- jdbc:calcite:schemaType=JDBC; schema.jdbcUser=SCOTT;
schema.jdbcPassword=TIGER; schema.jdbcUrl=jdbc:hsqldb:res:foodmart
+ `jdbc:calcite:schemaType=JDBC; schema.jdbcUser=SCOTT;
schema.jdbcPassword=TIGER; schema.jdbcUrl=jdbc:hsqldb:res:foodmart`
creates a connection with a schema mapped via the JDBC schema adapter to the
foodmart database.
Similarly, you can connect to a single schema based on a user-defined schema
adapter.
For example,
-
jdbc:calcite:schemaFactory=org.apache.calcite.adapter.cassandra.CassandraSchemaFactory;
schema.host=localhost; schema.keyspace=twissandra
+
`jdbc:calcite:schemaFactory=org.apache.calcite.adapter.cassandra.CassandraSchemaFactory;
schema.host=localhost; schema.keyspace=twissandra`
makes a connection to the Cassandra adapter, equivalent to writing the
following model file:
@@ -156,6 +156,8 @@ adding some DDL commands:
* `CREATE` and `DROP TABLE` (including `CREATE TABLE ... AS SELECT`)
* `CREATE` and `DROP MATERIALIZED VIEW`
* `CREATE` and `DROP VIEW`
+* `CREATE` and `DROP FUNCTION`
+* `CREATE` and `DROP TYPE`
Commands are described in the [SQL reference](reference.html#ddl-extensions).