tinybird-toolset 2.6.6__tar.gz → 2.7.0__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.
- {tinybird_toolset-2.6.6/src/tinybird_toolset.egg-info → tinybird_toolset-2.7.0}/PKG-INFO +1 -1
- {tinybird_toolset-2.6.6 → tinybird_toolset-2.7.0}/README.md +4 -26
- {tinybird_toolset-2.6.6 → tinybird_toolset-2.7.0}/conf.py +11 -2
- {tinybird_toolset-2.6.6 → tinybird_toolset-2.7.0}/setup.py +2 -1
- {tinybird_toolset-2.6.6 → tinybird_toolset-2.7.0/src/tinybird_toolset.egg-info}/PKG-INFO +1 -1
- {tinybird_toolset-2.6.6 → tinybird_toolset-2.7.0}/tests/test_check_compatible_types.py +1 -1
- {tinybird_toolset-2.6.6 → tinybird_toolset-2.7.0}/tests/test_tables.py +3 -0
- {tinybird_toolset-2.6.6 → tinybird_toolset-2.7.0}/tests/test_validate_ttl.py +11 -9
- {tinybird_toolset-2.6.6 → tinybird_toolset-2.7.0}/LICENSE +0 -0
- {tinybird_toolset-2.6.6 → tinybird_toolset-2.7.0}/MANIFEST.in +0 -0
- {tinybird_toolset-2.6.6 → tinybird_toolset-2.7.0}/setup.cfg +0 -0
- {tinybird_toolset-2.6.6 → tinybird_toolset-2.7.0}/src/chtoolset/__init__.py +0 -0
- {tinybird_toolset-2.6.6 → tinybird_toolset-2.7.0}/src/chtoolset/query.py +0 -0
- {tinybird_toolset-2.6.6 → tinybird_toolset-2.7.0}/src/tinybird_toolset.egg-info/SOURCES.txt +0 -0
- {tinybird_toolset-2.6.6 → tinybird_toolset-2.7.0}/src/tinybird_toolset.egg-info/dependency_links.txt +0 -0
- {tinybird_toolset-2.6.6 → tinybird_toolset-2.7.0}/src/tinybird_toolset.egg-info/requires.txt +0 -0
- {tinybird_toolset-2.6.6 → tinybird_toolset-2.7.0}/src/tinybird_toolset.egg-info/top_level.txt +0 -0
- {tinybird_toolset-2.6.6 → tinybird_toolset-2.7.0}/tests/test_check_ttl_partition_compatibility.py +0 -0
- {tinybird_toolset-2.6.6 → tinybird_toolset-2.7.0}/tests/test_check_write_query.py +0 -0
- {tinybird_toolset-2.6.6 → tinybird_toolset-2.7.0}/tests/test_chquery.py +0 -0
- {tinybird_toolset-2.6.6 → tinybird_toolset-2.7.0}/tests/test_convert_to_row_binary.py +0 -0
- {tinybird_toolset-2.6.6 → tinybird_toolset-2.7.0}/tests/test_explain_ast.py +0 -0
- {tinybird_toolset-2.6.6 → tinybird_toolset-2.7.0}/tests/test_get_columns_from_create_query.py +0 -0
- {tinybird_toolset-2.6.6 → tinybird_toolset-2.7.0}/tests/test_get_left_table.py +0 -0
- {tinybird_toolset-2.6.6 → tinybird_toolset-2.7.0}/tests/test_internal_cache.py +0 -0
- {tinybird_toolset-2.6.6 → tinybird_toolset-2.7.0}/tests/test_normalize_query_keep_names.py +0 -0
- {tinybird_toolset-2.6.6 → tinybird_toolset-2.7.0}/tests/test_normalize_table_column.py +0 -0
- {tinybird_toolset-2.6.6 → tinybird_toolset-2.7.0}/tests/test_parse_create_materialized_view_target_table.py +0 -0
- {tinybird_toolset-2.6.6 → tinybird_toolset-2.7.0}/tests/test_replace_tables.py +0 -0
- {tinybird_toolset-2.6.6 → tinybird_toolset-2.7.0}/tests/test_replace_tables_backward_compat.py +0 -0
- {tinybird_toolset-2.6.6 → tinybird_toolset-2.7.0}/tests/test_rewrite_aggregation_states.py +0 -0
- {tinybird_toolset-2.6.6 → tinybird_toolset-2.7.0}/tests/test_validate_partition_key.py +0 -0
|
@@ -259,36 +259,14 @@ When the MR is merged to `master` and `setup.py` changed, wheels for all platfor
|
|
|
259
259
|
|
|
260
260
|
| Platform | CI job | Runner |
|
|
261
261
|
|----------|--------|--------|
|
|
262
|
-
| Linux x86_64 + ARM64 | `release` | Docker (`amd64-spot`
|
|
263
|
-
| macOS ARM64 | `release/macos arm64` | Native Apple Silicon (`saas-macos-large-m2pro`) |
|
|
262
|
+
| Linux x86_64 + ARM64, macOS ARM64 | `release` | Docker (`amd64-spot`) |
|
|
264
263
|
|
|
265
|
-
The
|
|
266
|
-
- Collect
|
|
264
|
+
The `release` job will:
|
|
265
|
+
- Collect repaired wheels for all platforms
|
|
267
266
|
- Build the source distribution
|
|
268
267
|
- Upload everything to PyPI
|
|
269
268
|
- Create a git tag `vX.Y.Z` automatically
|
|
270
269
|
|
|
271
|
-
The macOS `release
|
|
270
|
+
The macOS `build/release macos arm64` job runs `make build test` with a persistent ccache archive in branch and merge request pipelines. The `delocate/release macos arm64` job repairs and tests its wheels on a native Apple Silicon runner.
|
|
272
271
|
|
|
273
272
|
The `PYPI_TOKEN` CI/CD variable must be configured in GitLab (Settings > CI/CD > Variables) with a valid PyPI API token.
|
|
274
|
-
|
|
275
|
-
### 3. Manual macOS release
|
|
276
|
-
|
|
277
|
-
To run the macOS release manually from a Mac with Apple Silicon:
|
|
278
|
-
|
|
279
|
-
```bash
|
|
280
|
-
export TWINE_USERNAME=__token__
|
|
281
|
-
export TWINE_PASSWORD=pypi-... # PyPI API token
|
|
282
|
-
./release.sh
|
|
283
|
-
```
|
|
284
|
-
|
|
285
|
-
The script will:
|
|
286
|
-
- Build wheels for Python 3.13-3.14
|
|
287
|
-
- Delocate them (bundle dynamic libraries, set minimum macOS version to 11.0)
|
|
288
|
-
- Run tests for each Python version
|
|
289
|
-
- Upload to PyPI
|
|
290
|
-
|
|
291
|
-
Requirements:
|
|
292
|
-
- macOS with Apple Silicon (ARM64)
|
|
293
|
-
- Homebrew LLVM 19 (`CC` and `CXX` must point to the Homebrew clang, not Apple's)
|
|
294
|
-
- `uv` and `make` installed
|
|
@@ -56,9 +56,11 @@ def apply_patch(patch_path):
|
|
|
56
56
|
print('PATCH NOT APPLIED:', patch_path)
|
|
57
57
|
return
|
|
58
58
|
|
|
59
|
-
# Check if the patch is already applied by doing a reverse dry-run
|
|
59
|
+
# Check if the patch is already applied by doing a reverse dry-run.
|
|
60
|
+
# -f: never ask "Unreversed patch detected! Ignore -R?"; BSD patch answers
|
|
61
|
+
# yes to it and then reports success for a patch that is not applied.
|
|
60
62
|
with open(patch_path, "r") as patch:
|
|
61
|
-
check = subprocess.Popen(['patch', '-p1', '-R', '--dry-run'],
|
|
63
|
+
check = subprocess.Popen(['patch', '-p1', '-R', '-f', '--dry-run'],
|
|
62
64
|
cwd=ROOT_DIR,
|
|
63
65
|
stdin=patch,
|
|
64
66
|
stdout=subprocess.PIPE,
|
|
@@ -152,6 +154,10 @@ class ClickHouseBuildExt(build_ext):
|
|
|
152
154
|
# remove once the fix lands in the pinned ClickHouse submodule.
|
|
153
155
|
apply_patch("patches/ColumnVectorTryInsert.patch")
|
|
154
156
|
|
|
157
|
+
# Keep TTL result validation compatible with ClickHouse versions before 25.8:
|
|
158
|
+
# DateTime64 and Date32 results must remain rejected until all servers migrate.
|
|
159
|
+
apply_patch("patches/ttl_result_type_compat.patch")
|
|
160
|
+
|
|
155
161
|
if sys.platform == 'darwin':
|
|
156
162
|
# We disable whole_archive options destined for AppleClang, which is unsupported but keeps being a PITA
|
|
157
163
|
apply_patch("patches/darwin.patch")
|
|
@@ -350,6 +356,9 @@ class CustomBuildWithFromCH(build_ext):
|
|
|
350
356
|
@staticmethod
|
|
351
357
|
def ldflags():
|
|
352
358
|
link_flags = CustomBuildWithFromCH.ninja_extractor_ldflags('LINK_FLAGS')
|
|
359
|
+
# On Linux the extracted flags include ClickHouse's `--wrap=malloc` & co.
|
|
360
|
+
# They stay: ClickHouse code calls `__real_*` directly, which only exists
|
|
361
|
+
# under --wrap, and src/AllocatorWrappers.cpp provides the `__wrap_*` side.
|
|
353
362
|
if sys.platform == 'linux':
|
|
354
363
|
link_flags.append('-g' if BUILD_FOR_VALGRIND or DEBUG_SYMBOLS else '-s')
|
|
355
364
|
link_flags.append('-Wl,--whole-archive')
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
from setuptools import setup, Extension
|
|
2
2
|
|
|
3
3
|
NAME = 'tinybird-toolset'
|
|
4
|
-
VERSION = '2.
|
|
4
|
+
VERSION = '2.7.0'
|
|
5
5
|
|
|
6
6
|
# Shared metadata for both the full (extension) build and the metadata-only
|
|
7
7
|
# fallback below, so the two setup() calls can't drift apart.
|
|
@@ -24,6 +24,7 @@ try:
|
|
|
24
24
|
"chtoolset._query",
|
|
25
25
|
sources=[
|
|
26
26
|
"src/query.cpp",
|
|
27
|
+
"src/AllocatorWrappers.cpp",
|
|
27
28
|
],
|
|
28
29
|
depends=[
|
|
29
30
|
"conf.py",
|
|
@@ -124,7 +124,7 @@ EXISTING_TYPES = [
|
|
|
124
124
|
# '{"name":"SimpleAggregateFunction","case_insensitive":0,"alias_to":""}',
|
|
125
125
|
'{"name":"String","case_insensitive":0,"alias_to":""}',
|
|
126
126
|
'{"name":"TEXT","case_insensitive":1,"alias_to":"String"}',
|
|
127
|
-
'{"name":"TIME","case_insensitive":1,"alias_to":"
|
|
127
|
+
'{"name":"TIME","case_insensitive":1,"alias_to":""}',
|
|
128
128
|
'{"name":"TIMESTAMP","case_insensitive":1,"alias_to":"DateTime"}',
|
|
129
129
|
'{"name":"TINYBLOB","case_insensitive":1,"alias_to":"String"}',
|
|
130
130
|
'{"name":"TINYINT","case_insensitive":1,"alias_to":"Int8"}',
|
|
@@ -29,6 +29,9 @@ class TestTables(unittest.TestCase):
|
|
|
29
29
|
('SELECT * FROM t WHERE event_date IN (Select * FROM system.query_log)', [('', 't', ''), ('system', 'query_log', '')]),
|
|
30
30
|
]
|
|
31
31
|
|
|
32
|
+
def test_json_all_paths_is_allowed(self):
|
|
33
|
+
self.assertEqual(chquery.tables("SELECT JSONAllPaths('{}'::JSON)"), [])
|
|
34
|
+
|
|
32
35
|
def test_extract_tables(self):
|
|
33
36
|
for (sql, expected_tables) in self.scenarios:
|
|
34
37
|
with self.subTest(sql=sql, expected_tables=expected_tables):
|
|
@@ -82,15 +82,17 @@ class TestValidateTTL(unittest.TestCase):
|
|
|
82
82
|
)
|
|
83
83
|
)
|
|
84
84
|
|
|
85
|
-
def
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
85
|
+
def test_invalid_unwrapped_datetime64_and_date32(self):
|
|
86
|
+
for type_name in ("DateTime64(3)", "Date32"):
|
|
87
|
+
with self.subTest(type_name=type_name):
|
|
88
|
+
err = chquery.validate_ttl(
|
|
89
|
+
ttl="event_time + toIntervalDay(7)",
|
|
90
|
+
columns=[{"name": "event_time", "type": type_name}],
|
|
91
|
+
sorting_key="event_time",
|
|
92
|
+
primary_key="event_time",
|
|
93
|
+
)
|
|
94
|
+
self.assertIsNotNone(err)
|
|
95
|
+
self.assertIn("TTL expression result column should have DateTime or Date type", err)
|
|
94
96
|
|
|
95
97
|
def test_invalid_unknown_column(self):
|
|
96
98
|
err = chquery.validate_ttl(
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tinybird_toolset-2.6.6 → tinybird_toolset-2.7.0}/src/tinybird_toolset.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{tinybird_toolset-2.6.6 → tinybird_toolset-2.7.0}/src/tinybird_toolset.egg-info/requires.txt
RENAMED
|
File without changes
|
{tinybird_toolset-2.6.6 → tinybird_toolset-2.7.0}/src/tinybird_toolset.egg-info/top_level.txt
RENAMED
|
File without changes
|
{tinybird_toolset-2.6.6 → tinybird_toolset-2.7.0}/tests/test_check_ttl_partition_compatibility.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tinybird_toolset-2.6.6 → tinybird_toolset-2.7.0}/tests/test_get_columns_from_create_query.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tinybird_toolset-2.6.6 → tinybird_toolset-2.7.0}/tests/test_replace_tables_backward_compat.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|