Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
python-phoenixdb
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Lukáš Lalinský
python-phoenixdb
Commits
b094ffc3
Commit
b094ffc3
authored
Aug 27, 2017
by
Lukáš Lalinský
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upgrade to Avatica 1.10
parent
ec705f0a
Pipeline
#18683
failed with stages
in 1 minute 28 seconds
Changes
13
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
24 additions
and
14 deletions
+24
-14
README.rst
README.rst
+5
-2
docker-compose.yml
docker-compose.yml
+6
-0
gen-protobuf.sh
gen-protobuf.sh
+7
-7
__init__.py
phoenixdb/avatica/__init__.py
+1
-0
client.py
phoenixdb/avatica/client.py
+1
-1
__init__.py
phoenixdb/avatica/proto/__init__.py
+0
-0
common_pb2.py
phoenixdb/avatica/proto/common_pb2.py
+0
-0
requests_pb2.py
phoenixdb/avatica/proto/requests_pb2.py
+0
-0
responses_pb2.py
phoenixdb/avatica/proto/responses_pb2.py
+0
-0
connection.py
phoenixdb/connection.py
+1
-1
cursor.py
phoenixdb/cursor.py
+1
-1
test_avatica.py
phoenixdb/tests/test_avatica.py
+1
-1
types.py
phoenixdb/types.py
+1
-1
No files found.
README.rst
View file @
b094ffc3
...
...
@@ -63,8 +63,11 @@ and run the script.
If you need a Phoenix query server for experimenting, you can get one running
quickly using `Docker <https://www.docker.com/>`_::
docker pull docker.oxygene.sk/lukas/python-phoenixdb/phoenix:4.11
docker run -p 127.0.0.1:8765:8765 docker.oxygene.sk/lukas/python-phoenixdb/phoenix:4.11
docker-compose up
Or if you need an older version of Phoenix::
PHOENIX_VERSION=4.9 docker-compose up
Interactive SQL shell
---------------------
...
...
docker-compose.yml
0 → 100644
View file @
b094ffc3
version
:
"
3"
services
:
phoenix
:
image
:
docker.oxygene.sk/lukas/python-phoenixdb/phoenix:${PHOENIX_VERSION:-4.11}
ports
:
-
"
127.0.0.1:8765:8765"
gen-protobuf.sh
View file @
b094ffc3
#!/usr/bin/env bash
export
CALCITE_VER
=
calcite-1.8.0
AVATICA_VER
=
rel/avatica-1.10.0
set
-e
rm
-rf
phoenixdb/calcite
rm
-rf
calcite-tmp
git init
calcite-tmp
mkdir
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
wget
-O
avatica.tar.gz https://github.com/apache/calcite-avatica/archive/
$AVATICA_VER
.tar.gz
tar
-x
--strip-components
=
1
-f
avatica.tar.gz
cd
..
mkdir
-p
phoenixdb/calcite
protoc
--proto_path
=
calcite-tmp/
avatica/core/src/main/protobuf/
--python_out
=
phoenixdb/calcite calcite-tmp/avatica
/core/src/main/protobuf/
*
.proto
protoc
--proto_path
=
calcite-tmp/
core/src/main/protobuf/
--python_out
=
phoenixdb/calcite calcite-tmp
/core/src/main/protobuf/
*
.proto
sed
-i
's/import common_pb2/from . import common_pb2/'
phoenixdb/calcite/
*
_pb2.py
rm
-rf
calcite-tmp
...
...
phoenixdb/avatica/__init__.py
0 → 100644
View file @
b094ffc3
from
.client
import
AvaticaClient
phoenixdb/avatica.py
→
phoenixdb/avatica
/client
.py
View file @
b094ffc3
...
...
@@ -21,7 +21,7 @@ import math
import
logging
import
time
from
phoenixdb
import
errors
from
phoenixdb.
calcite
import
requests_pb2
,
common_pb2
,
responses_pb2
from
phoenixdb.
avatica.proto
import
requests_pb2
,
common_pb2
,
responses_pb2
try
:
import
httplib
...
...
phoenixdb/
calcite
/__init__.py
→
phoenixdb/
avatica/proto
/__init__.py
View file @
b094ffc3
File moved
phoenixdb/
calcite
/common_pb2.py
→
phoenixdb/
avatica/proto
/common_pb2.py
View file @
b094ffc3
File moved
phoenixdb/
calcite
/requests_pb2.py
→
phoenixdb/
avatica/proto
/requests_pb2.py
View file @
b094ffc3
File moved
phoenixdb/
calcite
/responses_pb2.py
→
phoenixdb/
avatica/proto
/responses_pb2.py
View file @
b094ffc3
File moved
phoenixdb/connection.py
View file @
b094ffc3
...
...
@@ -16,7 +16,7 @@ import logging
import
uuid
import
weakref
from
phoenixdb
import
errors
from
phoenixdb.avatica
import
OPEN_CONNECTION_PROPERTIES
from
phoenixdb.avatica
.client
import
OPEN_CONNECTION_PROPERTIES
from
phoenixdb.cursor
import
Cursor
from
phoenixdb.errors
import
ProgrammingError
...
...
phoenixdb/cursor.py
View file @
b094ffc3
...
...
@@ -16,7 +16,7 @@ import logging
import
collections
from
phoenixdb.types
import
TypeHelper
from
phoenixdb.errors
import
ProgrammingError
,
InternalError
from
phoenixdb.
calcite
import
common_pb2
from
phoenixdb.
avatica.proto
import
common_pb2
__all__
=
[
'Cursor'
,
'ColumnDescription'
,
'DictCursor'
]
...
...
phoenixdb/tests/test_avatica.py
View file @
b094ffc3
import
unittest
from
phoenixdb.avatica
import
parse_url
,
urlparse
from
phoenixdb.avatica
.client
import
parse_url
,
urlparse
class
ParseUrlTest
(
unittest
.
TestCase
):
...
...
phoenixdb/types.py
View file @
b094ffc3
...
...
@@ -16,7 +16,7 @@ import sys
import
time
import
datetime
from
decimal
import
Decimal
from
phoenixdb.
calcite
import
common_pb2
from
phoenixdb.
avatica.proto
import
common_pb2
__all__
=
[
'Date'
,
'Time'
,
'Timestamp'
,
'DateFromTicks'
,
'TimeFromTicks'
,
'TimestampFromTicks'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment