https://github.com/devth/calcite-map-demo
Demonstration of integrating Calcite with a hierarchical dataset
https://github.com/devth/calcite-map-demo
Last synced: 9 months ago
JSON representation
Demonstration of integrating Calcite with a hierarchical dataset
- Host: GitHub
- URL: https://github.com/devth/calcite-map-demo
- Owner: devth
- Created: 2014-11-17T23:03:39.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-02-03T23:20:48.000Z (almost 11 years ago)
- Last Synced: 2025-03-29T16:41:03.841Z (10 months ago)
- Language: Scala
- Size: 238 KB
- Stars: 9
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# calcite-map-demo
Demonstrates querying nested data with Calcite.
## Run the Tests
```shell
mvn test -Dsuites=devth.calcite.TestRemoteCalcite
mvn test -Dsuites=devth.calcite.TestMapCalcite
```
## Open a sqlline shell
```
./sqlline
sqlline> !connect jdbc:calcite:model=src/test/resources/model.json admin admin
0: jdbc:calcite:model=src/test/resources/mode> !tables
+-----------+-------------+------------+------------+---------+----------+------------+-----------+---------------------------+----------------+
| TABLE_CAT | TABLE_SCHEM | TABLE_NAME | TABLE_TYPE | REMARKS | TYPE_CAT | TYPE_SCHEM | TYPE_NAME | SELF_REFERENCING_COL_NAME | REF_GENERATION |
+-----------+-------------+------------+------------+---------+----------+------------+-----------+---------------------------+----------------+
| null | map_raw | foo | TABLE | null | null | null | null | null | null |
| null | metadata | COLUMNS | SYSTEM_TABLE | null | null | null | null | null | null |
| null | metadata | TABLES | SYSTEM_TABLE | null | null | null | null | null | null |
+-----------+-------------+------------+------------+---------+----------+------------+-----------+---------------------------+----------------+
```