Commit 06a7b4a0 authored by Mark Heppner's avatar Mark Heppner

Add protobuf generator script and schema

parent f1bd4d14
......@@ -77,6 +77,8 @@ necessary requirements::
pip install -r requirements.txt
python setup.py develop
To create or update protobuf classes, change the tag in `gen-protobuf.sh` and execute. For Calcite >= 1.6, the path changes from `avatica/src/main/protobuf` to `avatica/core/src/main/protobuf`.
If you need a Phoenix server for experimenting, you can get one running
quickly using Vagrant::
......
#!/usr/bin/env bash
export CALCITE_VER=calcite-1.8.0
export CALCITE_DIR=calcite1_8
rm -rf phoenixdb/schema/$CALCITE_DIR
rm -rf calcite-tmp
git init calcite-tmp
cd calcite-tmp
git remote add origin https://github.com/apache/calcite/
git config core.sparsecheckout true
echo "avatica/core/src/main/protobuf/*" >> .git/info/sparse-checkout
git pull --depth=1 origin $CALCITE_VER
cd ..
mkdir -p phoenixdb/schema/$CALCITE_DIR
protoc --proto_path=calcite-tmp/avatica/core/src/main/protobuf/ --python_out=phoenixdb/schema/$CALCITE_DIR calcite-tmp/avatica/core/src/main/protobuf/*.proto
rm -rf calcite-tmp
echo '' >> phoenixdb/schema/__init__.py
echo '' >> phoenixdb/schema/$CALCITE_DIR/__init__.py
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
-e git+https://bitbucket.org/lalinsky/python-sqlline.git#egg=sqlline
nose
protobuf
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment