This is an automated email from the ASF dual-hosted git repository. stoty pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/phoenix-queryserver.git
The following commit(s) were added to refs/heads/master by this push: new 48ca4b2 PHOENIX-6529 Release python-phoenixdb 1.1.0 48ca4b2 is described below commit 48ca4b22b0f2793d54d7ae0ab4e6f8b5751301b4 Author: Istvan Toth <st...@cloudera.com> AuthorDate: Wed Aug 18 12:31:48 2021 +0200 PHOENIX-6529 Release python-phoenixdb 1.1.0 also split too long lines --- python-phoenixdb/NEWS.rst | 8 ++++++++ python-phoenixdb/phoenixdb/cursor.py | 4 +++- python-phoenixdb/phoenixdb/tests/test_db.py | 9 ++++++--- python-phoenixdb/setup.py | 2 +- 4 files changed, 18 insertions(+), 5 deletions(-) diff --git a/python-phoenixdb/NEWS.rst b/python-phoenixdb/NEWS.rst index 22fa1ce..5d9dfc8 100644 --- a/python-phoenixdb/NEWS.rst +++ b/python-phoenixdb/NEWS.rst @@ -1,6 +1,14 @@ Changelog ========= +Version 1.1.0 +------------- + +- Implemented get_primary_keys() and get_index_info() methods in meta object (PHOENIX-6410) +- Fixed broken SqlAlchemy get_pk_constraint() method to use meta.get_primary_keys() (PHOENIX-6410) +- Implemented SqlAlchemy get_indexes() method to expose meta.get_index_info() (PHOENIX-6410) +- Fixed empty array column handling in result set (PHOENIX-6484) + Version 1.0.1 ------------- diff --git a/python-phoenixdb/phoenixdb/cursor.py b/python-phoenixdb/phoenixdb/cursor.py index 0f1ace2..f4e84d4 100644 --- a/python-phoenixdb/phoenixdb/cursor.py +++ b/python-phoenixdb/phoenixdb/cursor.py @@ -175,7 +175,9 @@ class Cursor(object): def _transform_parameters(self, parameters): if len(parameters) != len(self._parameter_data_types): - raise ProgrammingError('Number of placeholders (?) must match number of parameters. Number of placeholders: {0}. Number of parameters: {1}'.format(len(self._parameter_data_types), len(parameters))) + raise ProgrammingError('Number of placeholders (?) must match number of parameters.' + ' Number of placeholders: {0}. Number of parameters: {1}' + .format(len(self._parameter_data_types), len(parameters))) typed_parameters = [] for value, data_type in zip(parameters, self._parameter_data_types): field_name, rep, mutate_to, cast_from, is_array = data_type diff --git a/python-phoenixdb/phoenixdb/tests/test_db.py b/python-phoenixdb/phoenixdb/tests/test_db.py index 3056a6b..6b94ba8 100644 --- a/python-phoenixdb/phoenixdb/tests/test_db.py +++ b/python-phoenixdb/phoenixdb/tests/test_db.py @@ -296,10 +296,13 @@ class PhoenixDatabaseTest(DatabaseTestCase): ]) with self.assertRaises(ProgrammingError) as cm: cursor.execute("UPSERT INTO phoenixdb_test_param_number VALUES (?, ?)", (123, 'John Doe', 'admin')) - self.assertEqual("Number of placeholders (?) must match number of parameters. Number of placeholders: 2. Number of parameters: 3", cm.exception.message) + self.assertEqual("Number of placeholders (?) must match number of parameters." + " Number of placeholders: 2. Number of parameters: 3", cm.exception.message) with self.assertRaises(ProgrammingError) as cm: cursor.execute("UPSERT INTO phoenixdb_test_param_number VALUES (?, ?, ?)", (123, 'John Doe', 'admin', 'asd')) - self.assertEqual("Number of placeholders (?) must match number of parameters. Number of placeholders: 3. Number of parameters: 4", cm.exception.message) + self.assertEqual("Number of placeholders (?) must match number of parameters." + " Number of placeholders: 3. Number of parameters: 4", cm.exception.message) with self.assertRaises(ProgrammingError) as cm: cursor.execute("UPSERT INTO phoenixdb_test_param_number VALUES (?, ?, ?)", (123, 'John Doe')) - self.assertEqual("Number of placeholders (?) must match number of parameters. Number of placeholders: 3. Number of parameters: 2", cm.exception.message) + self.assertEqual("Number of placeholders (?) must match number of parameters." + " Number of placeholders: 3. Number of parameters: 2", cm.exception.message) diff --git a/python-phoenixdb/setup.py b/python-phoenixdb/setup.py index 6ac0f47..4cdb682 100644 --- a/python-phoenixdb/setup.py +++ b/python-phoenixdb/setup.py @@ -59,7 +59,7 @@ else: 'Sphinx;python_version>="3.6"', ], -version = "1.1.0.dev0" +version = "1.1.0" setup( name="phoenixdb",