tinybird-cli 3.9.1.dev1__py3-none-any.whl → 3.9.1.dev2__py3-none-any.whl

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/__cli__.py CHANGED
@@ -4,5 +4,5 @@ __description__ = 'Tinybird Command Line Tool'
4
4
  __url__ = 'https://www.tinybird.co/docs/cli/introduction.html'
5
5
  __author__ = 'Tinybird'
6
6
  __author_email__ = 'support@tinybird.co'
7
- __version__ = '3.9.1.dev1'
8
- __revision__ = 'e7e3bee'
7
+ __version__ = '3.9.1.dev2'
8
+ __revision__ = 'baeeaa8'
tinybird/sql.py CHANGED
@@ -224,6 +224,8 @@ def parse_indexes_structure(indexes: List[str]) -> List[TableIndex]:
224
224
  [TableIndex(name='index_name', expr='a', type_full='set(100)', granularity=None), TableIndex(name='index_name_bf', expr='mapValues(d)', type_full='bloom_filter(0.001)', granularity=None)]
225
225
  >>> parse_indexes_structure(["index_name u64 * length(s) TYPE set(100)", "index_name_bf mapValues(d) TYPE bloom_filter"])
226
226
  [TableIndex(name='index_name', expr='u64 * length(s)', type_full='set(100)', granularity=None), TableIndex(name='index_name_bf', expr='mapValues(d)', type_full='bloom_filter', granularity=None)]
227
+ >>> parse_indexes_structure(["index_name path TYPE ngrambf_v1(4,1024,1,42) GRANULARITY 1"])
228
+ [TableIndex(name='index_name', expr='path', type_full='ngrambf_v1(4,1024,1,42)', granularity='1')]
227
229
  >>> parse_indexes_structure(["index_name u64 * length(s)"])
228
230
  Traceback (most recent call last):
229
231
  ...
@@ -243,7 +245,7 @@ def parse_indexes_structure(indexes: List[str]) -> List[TableIndex]:
243
245
  if index.count("TYPE") != 1:
244
246
  raise ValueError("invalid INDEX format. Usage: `name expr TYPE type_full GRANULARITY granularity`")
245
247
 
246
- match = re.match(r"(\w+)\s+([\w\s*()]+)\s+TYPE\s+(\w+)(?:\(([\w.]+)\))?(?:\s+GRANULARITY\s+(\d+))?", index)
248
+ match = re.match(r"(\w+)\s+([\w\s*()]+)\s+TYPE\s+(\w+)(?:\(([\w.,]+)\))?(?:\s+GRANULARITY\s+(\d+))?", index)
247
249
  if match:
248
250
  index_name, a, index_type, value, granularity = match.groups()
249
251
  index_expr = f"{index_type}({value})" if value else index_type
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tinybird-cli
3
- Version: 3.9.1.dev1
3
+ Version: 3.9.1.dev2
4
4
  Summary: Tinybird Command Line Tool
5
5
  Home-page: https://www.tinybird.co/docs/cli/introduction.html
6
6
  Author: Tinybird
@@ -51,6 +51,11 @@ The Tinybird command-line tool allows you to use all the Tinybird functionality
51
51
  Changelog
52
52
  ---------
53
53
 
54
+ 3.9.1.dev2
55
+ ************
56
+
57
+ - `Fixed` Support ngram index
58
+
54
59
  3.9.0
55
60
  ************
56
61
 
@@ -1,4 +1,4 @@
1
- tinybird/__cli__.py,sha256=3wSRZ96Z_A-ERb8Jn9aCrAQ2nwd2sNuQ7vy2vqQfiCU,254
1
+ tinybird/__cli__.py,sha256=duzHjeYTNisl-UkjgeOhfZIIGVRkfz2E_EVh4-sRjVk,254
2
2
  tinybird/check_pypi.py,sha256=_4NkharLyR_ELrAdit-ftqIWvOf7jZNPt3i76frlo9g,975
3
3
  tinybird/client.py,sha256=bwcjq8RQDZvrrcKdkp0B72w2_AGMEo1rSUBvtF1udes,46735
4
4
  tinybird/config.py,sha256=E0jDwbFD1zhdijNhtF8fg6mqIyKbZ8xpNPP_3n2PFpE,2003
@@ -8,7 +8,7 @@ tinybird/datafile.py,sha256=L_WeRYoy11HFERcS8VCkJDFmCXWZh1RFrmdeQKpDmdE,212510
8
8
  tinybird/datatypes.py,sha256=adYOQBTyfeBGVINIlaRex_81gTQQuqF2M9VTQpzq1H0,7060
9
9
  tinybird/feedback_manager.py,sha256=zfc0hibbq3lEARnogEVXNkr7Uxs3lENI7A1EQ6Axg7c,59114
10
10
  tinybird/git_settings.py,sha256=vu8sWb3TAXeM8Tqy27aR0el8MnPm7kqQzTRV76xB0ro,4707
11
- tinybird/sql.py,sha256=ln_rs8goRV-yP7BdiA3MewzFKgIHQdRalhtiUrwTBV4,41181
11
+ tinybird/sql.py,sha256=VkY6oPFmlRNORKcwkgfMhzp6iPcSLB7QHn_4l5ZIu5s,41381
12
12
  tinybird/sql_template.py,sha256=zyayaz7jiXnPsY-dyiyW0HVXVSH6zkMVOo9ARceUei8,81435
13
13
  tinybird/sql_template_fmt.py,sha256=1z-PuqSZXtzso8Z_mPqUc-NxIxUrNUcVIPezNieZk-M,10196
14
14
  tinybird/sql_toolset.py,sha256=598rLmCud3EAsRb1Zf1AtyuEe2CIjFaxNztpEU8e4xQ,11568
@@ -36,8 +36,8 @@ tinybird/tb_cli_modules/workspace.py,sha256=NDHINzW3SBo8FcWH8Bx-DCeUXQ8YUJX6FW8c
36
36
  tinybird/tb_cli_modules/workspace_members.py,sha256=3HzY43218fb35ZM81mtkwDQe7gAAf1zEFY6kIEhGvgE,8268
37
37
  tinybird/tb_cli_modules/tinyunit/tinyunit.py,sha256=0dYYmZMMJVubxSPls2e_a-fqtUYvgLfu2B0xwLfkbHw,11667
38
38
  tinybird/tb_cli_modules/tinyunit/tinyunit_lib.py,sha256=j92za8QbXrv4eIPjKBZPn9ghR-nYQ2wZZ88MeXyMWXE,1868
39
- tinybird_cli-3.9.1.dev1.dist-info/METADATA,sha256=61vTHHsEF5Hjs-cF4NaX2-Q8RZy3QJgFE2cq6YfHcZU,70022
40
- tinybird_cli-3.9.1.dev1.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
41
- tinybird_cli-3.9.1.dev1.dist-info/entry_points.txt,sha256=PKPKuPmA4IfJYnCFHHUiw-aAWZuBomFvwCklv1OyCjE,43
42
- tinybird_cli-3.9.1.dev1.dist-info/top_level.txt,sha256=pgw6AzERHBcW3YTi2PW4arjxLkulk2msOz_SomfOEuc,45
43
- tinybird_cli-3.9.1.dev1.dist-info/RECORD,,
39
+ tinybird_cli-3.9.1.dev2.dist-info/METADATA,sha256=NgWY6v31o9QrlfkjpOg7_J3QoM9bJuTksSGvGLjuCT0,70078
40
+ tinybird_cli-3.9.1.dev2.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
41
+ tinybird_cli-3.9.1.dev2.dist-info/entry_points.txt,sha256=PKPKuPmA4IfJYnCFHHUiw-aAWZuBomFvwCklv1OyCjE,43
42
+ tinybird_cli-3.9.1.dev2.dist-info/top_level.txt,sha256=pgw6AzERHBcW3YTi2PW4arjxLkulk2msOz_SomfOEuc,45
43
+ tinybird_cli-3.9.1.dev2.dist-info/RECORD,,