This is an automated email from the ASF dual-hosted git repository.
hyuan 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 41df09c [CALCITE-3006] Example code on site cannot compile (Chunwei
Lei)
41df09c is described below
commit 41df09cb3a842b43606fa69bbcb25a70d8250bdb
Author: Chunwei Lei <[email protected]>
AuthorDate: Thu Apr 18 11:19:46 2019 +0800
[CALCITE-3006] Example code on site cannot compile (Chunwei Lei)
---
site/_docs/index.md | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/site/_docs/index.md b/site/_docs/index.md
index bbff998..cf4560c 100644
--- a/site/_docs/index.md
+++ b/site/_docs/index.md
@@ -50,8 +50,7 @@ Connection connection =
CalciteConnection calciteConnection =
connection.unwrap(CalciteConnection.class);
SchemaPlus rootSchema = calciteConnection.getRootSchema();
-Schema schema = ReflectiveSchema.create(calciteConnection,
- rootSchema, "hr", new HrSchema());
+Schema schema = new ReflectiveSchema(new HrSchema());
rootSchema.add("hr", schema);
Statement statement = calciteConnection.createStatement();
ResultSet resultSet = statement.executeQuery(
@@ -68,7 +67,7 @@ connection.close();
{% endhighlight %}
Where is the database? There is no database. The connection is
-completely empty until `ReflectiveSchema.create` registers a Java
+completely empty until `new ReflectiveSchema` registers a Java
object as a schema and its collection fields `emps` and `depts` as
tables.
@@ -79,8 +78,7 @@ library. But Calcite can also process data in other data
formats, such
as JDBC. In the first example, replace
{% highlight java %}
-Schema schema = ReflectiveSchema.create(calciteConnection,
- rootSchema, "hr", new HrSchema());
+Schema schema = new ReflectiveSchema(new HrSchema());
{% endhighlight %}
with