kudu-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject kudu git commit: python: fix non-DECIMAL unit test breakage
Date Tue, 07 Aug 2018 22:25:36 GMT
Repository: kudu
Updated Branches:
  refs/heads/master 65aec714f -> d62cde400


python: fix non-DECIMAL unit test breakage

For reference, the table schema is:

  builder.add_column('key').type(kudu.int64).nullable(False)
  builder.add_column('unixtime_micros_val', type_=kudu.unixtime_micros, nullable=False)
  if kudu.CLIENT_SUPPORTS_DECIMAL:
    builder.add_column('decimal_val', type_=kudu.decimal, precision=5, scale=2)
  builder.add_column('string_val', type_=kudu.string, compression=kudu.COMPRESSION_LZ4, encoding='prefix')
  builder.add_column('bool_val', type_=kudu.bool)
  builder.add_column('double_val', type_=kudu.double)
  builder.add_column('int8_val', type_=kudu.int8)
  builder.add_column('binary_val', type_='binary', compression=kudu.COMPRESSION_SNAPPY, encoding='prefix')
  builder.add_column('float_val', type_=kudu.float)
  builder.set_primary_keys(['key', 'unixtime_micros_val'])

Change-Id: Ife6cc90ebf229f876854da6cb3a8857c192a296f
Reviewed-on: http://gerrit.cloudera.org:8080/11148
Reviewed-by: Andrew Wong <awong@cloudera.com>
Reviewed-by: Grant Henke <granthenke@apache.org>
Tested-by: Kudu Jenkins


Project: http://git-wip-us.apache.org/repos/asf/kudu/repo
Commit: http://git-wip-us.apache.org/repos/asf/kudu/commit/d62cde40
Tree: http://git-wip-us.apache.org/repos/asf/kudu/tree/d62cde40
Diff: http://git-wip-us.apache.org/repos/asf/kudu/diff/d62cde40

Branch: refs/heads/master
Commit: d62cde400d91e11122781f2b3940c8a714c66d01
Parents: 65aec71
Author: Adar Dembo <adar@cloudera.com>
Authored: Tue Aug 7 11:39:58 2018 -0700
Committer: Adar Dembo <adar@cloudera.com>
Committed: Tue Aug 7 22:25:05 2018 +0000

----------------------------------------------------------------------
 python/kudu/tests/test_scanner.py | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kudu/blob/d62cde40/python/kudu/tests/test_scanner.py
----------------------------------------------------------------------
diff --git a/python/kudu/tests/test_scanner.py b/python/kudu/tests/test_scanner.py
index 95afdd5..6d23d96 100644
--- a/python/kudu/tests/test_scanner.py
+++ b/python/kudu/tests/test_scanner.py
@@ -350,12 +350,12 @@ class TestScanner(TestScanBase):
         else:
             self.assertEqual(types[0], np.int64)
             self.assertEqual(types[1], 'datetime64[ns, UTC]')
-            self.assertEqual(types[3], np.object)
-            self.assertEqual(types[4], np.bool)
-            self.assertEqual(types[5], np.float64)
-            self.assertEqual(types[6], np.int8)
-            self.assertEqual(types[7], np.object)
-            self.assertEqual(types[8], np.float32)
+            self.assertEqual(types[2], np.object)
+            self.assertEqual(types[3], np.bool)
+            self.assertEqual(types[4], np.float64)
+            self.assertEqual(types[5], np.int8)
+            self.assertEqual(types[6], np.object)
+            self.assertEqual(types[7], np.float32)
 
     def test_scanner_to_pandas_row_count(self):
         """


Mime
View raw message