Add transactions model.

Project: http://git-wip-us.apache.org/repos/asf/incubator-gearpump/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-gearpump/commit/2b2a7e76
Tree: http://git-wip-us.apache.org/repos/asf/incubator-gearpump/tree/2b2a7e76
Diff: http://git-wip-us.apache.org/repos/asf/incubator-gearpump/diff/2b2a7e76

Branch: refs/heads/sql
Commit: 2b2a7e76df9084f61c343e6f9890b90721d7689e
Parents: 1f30ec3
Author: Buddhi Ayesha <[email protected]>
Authored: Fri Jun 2 10:28:26 2017 +0530
Committer: manuzhang <[email protected]>
Committed: Sun Jul 9 07:50:24 2017 +0800

----------------------------------------------------------------------
 experiments/sql/src/test/resources/model.json | 39 ++++++++++++++++++++++
 1 file changed, 39 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-gearpump/blob/2b2a7e76/experiments/sql/src/test/resources/model.json
----------------------------------------------------------------------
diff --git a/experiments/sql/src/test/resources/model.json 
b/experiments/sql/src/test/resources/model.json
new file mode 100644
index 0000000..5dfbf53
--- /dev/null
+++ b/experiments/sql/src/test/resources/model.json
@@ -0,0 +1,39 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to you under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * A JSON model of a simple Calcite schema.
+ */
+
+{
+  "version": "1.0",
+  "defaultSchema": "SALES",
+  "schemas": [
+    {
+      "name": "SALES",
+      "tables": [
+        {
+          "name": "Transactions",
+          "type": "custom",
+          "factory": "org.apache.calcite.table.TransactionsTableFactory",
+          "operand": {
+            "file": "resources/sales/Transactions.csv",
+            "flavor": "scannable"
+          }
+        }
+      ]
+    }
+  ]
+}

Reply via email to