tinybird-toolset 2.4.13__tar.gz → 2.4.14__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. {tinybird_toolset-2.4.13/src/tinybird_toolset.egg-info → tinybird_toolset-2.4.14}/PKG-INFO +1 -1
  2. {tinybird_toolset-2.4.13 → tinybird_toolset-2.4.14}/conf.py +5 -0
  3. {tinybird_toolset-2.4.13 → tinybird_toolset-2.4.14}/setup.py +1 -1
  4. {tinybird_toolset-2.4.13 → tinybird_toolset-2.4.14/src/tinybird_toolset.egg-info}/PKG-INFO +1 -1
  5. {tinybird_toolset-2.4.13 → tinybird_toolset-2.4.14}/tests/test_convert_to_row_binary.py +6 -4
  6. {tinybird_toolset-2.4.13 → tinybird_toolset-2.4.14}/LICENSE +0 -0
  7. {tinybird_toolset-2.4.13 → tinybird_toolset-2.4.14}/MANIFEST.in +0 -0
  8. {tinybird_toolset-2.4.13 → tinybird_toolset-2.4.14}/README.md +0 -0
  9. {tinybird_toolset-2.4.13 → tinybird_toolset-2.4.14}/setup.cfg +0 -0
  10. {tinybird_toolset-2.4.13 → tinybird_toolset-2.4.14}/src/chtoolset/__init__.py +0 -0
  11. {tinybird_toolset-2.4.13 → tinybird_toolset-2.4.14}/src/chtoolset/query.py +0 -0
  12. {tinybird_toolset-2.4.13 → tinybird_toolset-2.4.14}/src/tinybird_toolset.egg-info/SOURCES.txt +0 -0
  13. {tinybird_toolset-2.4.13 → tinybird_toolset-2.4.14}/src/tinybird_toolset.egg-info/dependency_links.txt +0 -0
  14. {tinybird_toolset-2.4.13 → tinybird_toolset-2.4.14}/src/tinybird_toolset.egg-info/requires.txt +0 -0
  15. {tinybird_toolset-2.4.13 → tinybird_toolset-2.4.14}/src/tinybird_toolset.egg-info/top_level.txt +0 -0
  16. {tinybird_toolset-2.4.13 → tinybird_toolset-2.4.14}/tests/test_check_compatible_types.py +0 -0
  17. {tinybird_toolset-2.4.13 → tinybird_toolset-2.4.14}/tests/test_check_write_query.py +0 -0
  18. {tinybird_toolset-2.4.13 → tinybird_toolset-2.4.14}/tests/test_chquery.py +0 -0
  19. {tinybird_toolset-2.4.13 → tinybird_toolset-2.4.14}/tests/test_explain_ast.py +0 -0
  20. {tinybird_toolset-2.4.13 → tinybird_toolset-2.4.14}/tests/test_get_columns_from_create_query.py +0 -0
  21. {tinybird_toolset-2.4.13 → tinybird_toolset-2.4.14}/tests/test_get_left_table.py +0 -0
  22. {tinybird_toolset-2.4.13 → tinybird_toolset-2.4.14}/tests/test_internal_cache.py +0 -0
  23. {tinybird_toolset-2.4.13 → tinybird_toolset-2.4.14}/tests/test_normalize_query_keep_names.py +0 -0
  24. {tinybird_toolset-2.4.13 → tinybird_toolset-2.4.14}/tests/test_normalize_table_column.py +0 -0
  25. {tinybird_toolset-2.4.13 → tinybird_toolset-2.4.14}/tests/test_parse_create_materialized_view_target_table.py +0 -0
  26. {tinybird_toolset-2.4.13 → tinybird_toolset-2.4.14}/tests/test_replace_tables.py +0 -0
  27. {tinybird_toolset-2.4.13 → tinybird_toolset-2.4.14}/tests/test_replace_tables_backward_compat.py +0 -0
  28. {tinybird_toolset-2.4.13 → tinybird_toolset-2.4.14}/tests/test_rewrite_aggregation_states.py +0 -0
  29. {tinybird_toolset-2.4.13 → tinybird_toolset-2.4.14}/tests/test_tables.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tinybird-toolset
3
- Version: 2.4.13
3
+ Version: 2.4.14
4
4
  Home-page: https://gitlab.com/tinybird/clickhouse-toolset
5
5
  Author: Tinybird.co
6
6
  Author-email: support@tinybird.co
@@ -141,6 +141,11 @@ class ClickHouseBuildExt(build_ext):
141
141
  # Temporary for debugging: some functions are missing from libdbms.a, this is in the private repo pmaster already so we should include it from the repo
142
142
  apply_patch("patches/dbmsfunctions.patch")
143
143
 
144
+ # Range-check narrow-integer Field inserts so JSON/Dynamic paths widen instead of
145
+ # silently wrapping (1944 -> -104). Backport of the ColumnVector::tryInsert fix;
146
+ # remove once the fix lands in the pinned ClickHouse submodule.
147
+ apply_patch("patches/ColumnVectorTryInsert.patch")
148
+
144
149
  if sys.platform == 'darwin':
145
150
  # We disable whole_archive options destined for AppleClang, which is unsupported but keeps being a PITA
146
151
  apply_patch("patches/darwin.patch")
@@ -1,7 +1,7 @@
1
1
  from setuptools import setup, Extension
2
2
 
3
3
  NAME = 'tinybird-toolset'
4
- VERSION = '2.4.13'
4
+ VERSION = '2.4.14'
5
5
 
6
6
  try:
7
7
  from conf import *
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tinybird-toolset
3
- Version: 2.4.13
3
+ Version: 2.4.14
4
4
  Home-page: https://gitlab.com/tinybird/clickhouse-toolset
5
5
  Author: Tinybird.co
6
6
  Author-email: support@tinybird.co
@@ -8346,20 +8346,22 @@ TEST_CASES = [
8346
8346
  1, 0),
8347
8347
 
8348
8348
 
8349
- # schemaless JSON encoded as string can choose too-narrow integer types and overflow values
8349
+ # schemaless JSON encoded as string widens too-narrow integer types instead of
8350
+ # overflowing: y=22 first pins the path to Int8, then y=220 widens it to Int16
8351
+ # rather than wrapping to -36 (CH-440, ColumnVector::tryInsert range check)
8350
8352
  (ConversionMode.ONLY_LEGACY,
8351
8353
  [('v', 'Map(String, JSON)', '$', False)],
8352
8354
  '{"a":{"x":11,"y":22},"b":{"x":110,"y":220}}',
8353
- b'\x00\x02\x01a\x0f{"x":11,"y":22}\x01b\x11{"x":110,"y":-36}',
8355
+ b'\x00\x02\x01a\x0f{"x":11,"y":22}\x01b\x11{"x":110,"y":220}',
8354
8356
  b'',
8355
8357
  1, 0),
8356
8358
  (ConversionMode.ONLY_LEGACY,
8357
8359
  [('json', 'Map(String, JSON)', "$", False)],
8358
8360
  '{"a":"{\\"x\\":11,\\"y\\":22}","b":"{\\"x\\":110,\\"y\\":220}"}',
8359
- b'\x00\x02\x01a\x0f{"x":11,"y":22}\x01b\x11{"x":110,"y":-36}',
8361
+ b'\x00\x02\x01a\x0f{"x":11,"y":22}\x01b\x11{"x":110,"y":220}',
8360
8362
  b'',
8361
8363
  1, 0),
8362
- # doesn't happen with binary JSON encoding
8364
+ # binary JSON encoding stores per-value type tags, so it already preserved the value
8363
8365
  (ConversionMode.ONLY_NONLEGACY,
8364
8366
  [('v', 'Map(String, JSON)', '$', False)],
8365
8367
  '{"a":{"x":11,"y":22},"b":{"x":110,"y":220}}',