tinybird 5.0.2__tar.gz → 5.0.2.dev0__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 (130) hide show
  1. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/PKG-INFO +1 -6
  2. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/pyproject.toml +1 -1
  3. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/sql_template_fmt.py +0 -10
  4. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/__cli__.py +2 -2
  5. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/modules/datafile/pipe_checker.py +2 -8
  6. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird.egg-info/PKG-INFO +1 -6
  7. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/setup.cfg +0 -0
  8. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/__cli__.py +0 -0
  9. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/ch_utils/constants.py +0 -0
  10. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/ch_utils/engine.py +0 -0
  11. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/check_pypi.py +0 -0
  12. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/client.py +0 -0
  13. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/config.py +0 -0
  14. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/context.py +0 -0
  15. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/datafile/common.py +0 -0
  16. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/datafile/exceptions.py +0 -0
  17. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/datafile/parse_connection.py +0 -0
  18. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/datafile/parse_datasource.py +0 -0
  19. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/datafile/parse_pipe.py +0 -0
  20. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/datatypes.py +0 -0
  21. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/feedback_manager.py +0 -0
  22. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/git_settings.py +0 -0
  23. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/iterating/__init__.py +0 -0
  24. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/iterating/data_branch_modes.py +0 -0
  25. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/prompts.py +0 -0
  26. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/service_datasources.py +0 -0
  27. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/sql.py +0 -0
  28. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/sql_template.py +0 -0
  29. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/sql_toolset.py +0 -0
  30. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/syncasync.py +0 -0
  31. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/check_pypi.py +0 -0
  32. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/cli.py +0 -0
  33. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/client.py +0 -0
  34. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/config.py +0 -0
  35. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/modules/branch.py +0 -0
  36. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/modules/build.py +0 -0
  37. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/modules/build_common.py +0 -0
  38. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/modules/cicd.py +0 -0
  39. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/modules/cli.py +0 -0
  40. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/modules/common.py +0 -0
  41. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/modules/config.py +0 -0
  42. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/modules/connection.py +0 -0
  43. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/modules/connection_dynamodb.py +0 -0
  44. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/modules/connection_kafka.py +0 -0
  45. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/modules/connection_s3.py +0 -0
  46. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/modules/copy.py +0 -0
  47. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/modules/create.py +0 -0
  48. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/modules/datafile/build.py +0 -0
  49. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/modules/datafile/build_common.py +0 -0
  50. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/modules/datafile/build_datasource.py +0 -0
  51. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/modules/datafile/build_pipe.py +0 -0
  52. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/modules/datafile/diff.py +0 -0
  53. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/modules/datafile/fixture.py +0 -0
  54. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/modules/datafile/format_common.py +0 -0
  55. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/modules/datafile/format_connection.py +0 -0
  56. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/modules/datafile/format_datasource.py +0 -0
  57. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/modules/datafile/format_pipe.py +0 -0
  58. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/modules/datafile/playground.py +0 -0
  59. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/modules/datafile/pull.py +0 -0
  60. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/modules/datasource.py +0 -0
  61. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/modules/deployment.py +0 -0
  62. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/modules/deployment_common.py +0 -0
  63. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/modules/deprecations.py +0 -0
  64. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/modules/endpoint.py +0 -0
  65. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/modules/exceptions.py +0 -0
  66. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/modules/feedback_manager.py +0 -0
  67. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/modules/fmt.py +0 -0
  68. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/modules/info.py +0 -0
  69. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/modules/infra.py +0 -0
  70. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/modules/job.py +0 -0
  71. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/modules/job_common.py +0 -0
  72. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/modules/llm.py +0 -0
  73. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/modules/llm_utils.py +0 -0
  74. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/modules/local.py +0 -0
  75. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/modules/local_common.py +0 -0
  76. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/modules/local_logs.py +0 -0
  77. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/modules/login.py +0 -0
  78. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/modules/login_common.py +0 -0
  79. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/modules/logout.py +0 -0
  80. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/modules/logs.py +0 -0
  81. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/modules/materialization.py +0 -0
  82. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/modules/open.py +0 -0
  83. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/modules/pipe.py +0 -0
  84. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/modules/preview.py +0 -0
  85. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/modules/project.py +0 -0
  86. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/modules/project_commands.py +0 -0
  87. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/modules/py_project.py +0 -0
  88. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/modules/query_output.py +0 -0
  89. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/modules/regions.py +0 -0
  90. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/modules/secret.py +0 -0
  91. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/modules/secret_common.py +0 -0
  92. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/modules/sink.py +0 -0
  93. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/modules/table.py +0 -0
  94. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/modules/telemetry.py +0 -0
  95. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/modules/test.py +0 -0
  96. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/modules/test_common.py +0 -0
  97. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/modules/tinyunit/tinyunit.py +0 -0
  98. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/modules/token.py +0 -0
  99. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/modules/ts_project.py +0 -0
  100. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/modules/watch.py +0 -0
  101. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/modules/workspace.py +0 -0
  102. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb/modules/workspace_members.py +0 -0
  103. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb_cli.py +0 -0
  104. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb_cli_modules/auth.py +0 -0
  105. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb_cli_modules/branch.py +0 -0
  106. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb_cli_modules/cicd.py +0 -0
  107. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb_cli_modules/cli.py +0 -0
  108. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb_cli_modules/common.py +0 -0
  109. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb_cli_modules/config.py +0 -0
  110. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb_cli_modules/connection.py +0 -0
  111. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb_cli_modules/datasource.py +0 -0
  112. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb_cli_modules/exceptions.py +0 -0
  113. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb_cli_modules/fmt.py +0 -0
  114. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb_cli_modules/job.py +0 -0
  115. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb_cli_modules/pipe.py +0 -0
  116. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb_cli_modules/regions.py +0 -0
  117. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb_cli_modules/tag.py +0 -0
  118. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb_cli_modules/telemetry.py +0 -0
  119. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb_cli_modules/test.py +0 -0
  120. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb_cli_modules/tinyunit/tinyunit.py +0 -0
  121. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb_cli_modules/workspace.py +0 -0
  122. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tb_cli_modules/workspace_members.py +0 -0
  123. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/tornado_template.py +0 -0
  124. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/utils/__init__.py +0 -0
  125. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird/utils/bools.py +0 -0
  126. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird.egg-info/SOURCES.txt +0 -0
  127. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird.egg-info/dependency_links.txt +0 -0
  128. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird.egg-info/entry_points.txt +0 -0
  129. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird.egg-info/requires.txt +0 -0
  130. {tinybird-5.0.2 → tinybird-5.0.2.dev0}/tinybird.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: tinybird
3
- Version: 5.0.2
3
+ Version: 5.0.2.dev0
4
4
  Summary: Tinybird Command Line Tool
5
5
  Home-page: https://www.tinybird.co/docs/forward/commands
6
6
  Author: Tinybird
@@ -52,11 +52,6 @@ The Tinybird command-line tool allows you to use all the Tinybird functionality
52
52
  Changelog
53
53
  ----------
54
54
 
55
- 5.0.2
56
- *******
57
-
58
- - `Fixed` ``tb fmt`` keeps ClickHouse numeric literals such as ``1e9``, ``0x1F``, ``0b101``, ``0x1p4`` and ``1_000_000`` intact instead of splitting them into separate tokens.
59
-
60
55
  5.0.1
61
56
  *******
62
57
 
@@ -108,7 +108,7 @@ dependencies = [
108
108
  "tabulate==0.8.10",
109
109
  "thefuzz==0.22.1",
110
110
  "tinybird-python-sdk[ai]==0.3.7",
111
- "tinybird-toolset==2.7.4",
111
+ "tinybird-toolset==2.7.1",
112
112
  "toposort==1.10",
113
113
  "tornado==6.5.5",
114
114
  "urllib3~=2.8",
@@ -195,16 +195,6 @@ class TinybirdDialect(ClickHouse):
195
195
  ),
196
196
  action=partial(actions.add_node_to_buffer, token_type=TokenType.QUOTED_NAME),
197
197
  ),
198
- Rule(
199
- name="number",
200
- priority=700,
201
- pattern=group(
202
- r"-?0x[0-9a-f][0-9a-f_]*(\.[0-9a-f_]*)?(p[+-]?\d[\d_]*)?",
203
- r"-?0b[01][01_]*",
204
- r"-?(\d[\d_]*\.?[\d_]*|\.\d[\d_]*)(e[+-]?\d[\d_]*)?",
205
- ),
206
- action=partial(actions.add_node_to_buffer, token_type=TokenType.NUMBER),
207
- ),
208
198
  ],
209
199
  "jinja": [
210
200
  Rule(
@@ -4,5 +4,5 @@ __description__ = 'Tinybird Command Line Tool'
4
4
  __url__ = 'https://www.tinybird.co/docs/forward/commands'
5
5
  __author__ = 'Tinybird'
6
6
  __author_email__ = 'support@tinybird.co'
7
- __version__ = '5.0.2'
8
- __revision__ = '74fe6e30'
7
+ __version__ = '5.0.2.dev0'
8
+ __revision__ = '44d7abef'
@@ -20,10 +20,6 @@ from tinybird.tb.modules.common import getenv_bool
20
20
  PIPE_CHECKER_RETRIES: int = 3
21
21
 
22
22
 
23
- def _escape_single_quote_str(value: str) -> str:
24
- return "'" + value.replace("\\", "\\\\").replace("'", "''") + "'"
25
-
26
-
27
23
  class PipeChecker(unittest.TestCase):
28
24
  RETRIES_LIMIT = PIPE_CHECKER_RETRIES
29
25
 
@@ -266,8 +262,6 @@ class PipeCheckerRunner:
266
262
  pipe_stats_rt_table: str = "",
267
263
  extra_where_clause: str = "",
268
264
  ):
269
- limit = int(limit)
270
- sample_by_params = int(sample_by_params)
271
265
  pipe_stats_rt = pipe_stats_rt_table or "tinybird.pipe_stats_rt"
272
266
  # TODO it may not be needed to extract token, pipe_checker, form or debug. They may be used in next steps
273
267
  # TODO extractURLParameter(assumeNotNull(url), 'from') <> 'ui' should read from request_param_names.
@@ -295,7 +289,7 @@ class PipeCheckerRunner:
295
289
  AND extractURLParameter(assumeNotNull(url), 'debug') <> 'query'
296
290
  AND error = 0
297
291
  AND not mapContains(parameters, '__tb__semver')
298
- {" AND " + " AND ".join([f"mapContains(pipe_request_params, {_escape_single_quote_str(match)})" for match in matches]) if matches and len(matches) > 0 else ""}
292
+ {" AND " + " AND ".join([f"mapContains(pipe_request_params, '{match}')" for match in matches]) if matches and len(matches) > 0 else ""}
299
293
  {extra_where_clause}
300
294
  Limit 5000000 -- Enough to bring data while not processing all requests from highly used pipes
301
295
  )
@@ -324,7 +318,7 @@ class PipeCheckerRunner:
324
318
  AND extractURLParameter(assumeNotNull(url), 'debug') <> 'query'
325
319
  AND error = 0
326
320
  AND not mapContains(parameters, '__tb__semver')
327
- {" AND " + " AND ".join([f"mapContains(pipe_request_params, {_escape_single_quote_str(match)})" for match in matches]) if matches and len(matches) > 0 else ""}
321
+ {" AND " + " AND ".join([f"mapContains(pipe_request_params, '{match}')" for match in matches]) if matches and len(matches) > 0 else ""}
328
322
  {extra_where_clause}
329
323
  LIMIT {limit}
330
324
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: tinybird
3
- Version: 5.0.2
3
+ Version: 5.0.2.dev0
4
4
  Summary: Tinybird Command Line Tool
5
5
  Home-page: https://www.tinybird.co/docs/forward/commands
6
6
  Author: Tinybird
@@ -52,11 +52,6 @@ The Tinybird command-line tool allows you to use all the Tinybird functionality
52
52
  Changelog
53
53
  ----------
54
54
 
55
- 5.0.2
56
- *******
57
-
58
- - `Fixed` ``tb fmt`` keeps ClickHouse numeric literals such as ``1e9``, ``0x1F``, ``0b101``, ``0x1p4`` and ``1_000_000`` intact instead of splitting them into separate tokens.
59
-
60
55
  5.0.1
61
56
  *******
62
57
 
File without changes
File without changes