Commit fcff03ff authored by Lukáš Lalinský's avatar Lukáš Lalinský

Assume Calcite 1.3 by default (included in Phoenix 4.5.2)

parent 56086933
......@@ -117,7 +117,7 @@ class AvaticaClient(object):
if version is not None:
self.version = version
else:
self.version = AVATICA_1_2_0
self.version = AVATICA_1_3_0
query = urlparse.parse_qs(self.url.query)
for v in query.get('v', []):
if v in ('1.2.0', '1.2'):
......
......@@ -88,6 +88,8 @@ class TypesTest(DatabaseTestCase):
self.checkFloatType("unsigned_double", 0, 1.7976931348623158E+308)
def test_decimal(self):
if self.conn._client.version < AVATICA_1_4_0:
raise unittest.SkipTest('decimal only works correctly with Calcite >= 1.4.0')
self.createTable("phoenixdb_test_tbl1", "id integer primary key, val decimal(8,3)")
with self.conn.cursor() as cursor:
cursor.execute("UPSERT INTO phoenixdb_test_tbl1 VALUES (1, 33333.333)")
......
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