tinybird 4.6.13.dev0__py3-none-any.whl → 4.6.15.dev0__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.
@@ -2091,6 +2091,7 @@ def parse(
2091
2091
  "sql": sql("sql"),
2092
2092
  "version": version,
2093
2093
  "deployment_method": assign_var("deployment_method", allowed_values={"alter"}),
2094
+ "export_service": export_service, # Deprecated
2094
2095
  "export_connection_name": assign_var("export_connection_name"),
2095
2096
  "export_schedule": assign_var("export_schedule"),
2096
2097
  "export_bucket_uri": assign_var("export_bucket_uri"),
@@ -52,20 +52,35 @@ def parse_pipe(
52
52
  if "type" in node:
53
53
  node["type"] = node["type"].lower()
54
54
  sql = node.get("sql", "")
55
- if sql.strip()[0] == "%":
55
+ source_sql = sql.strip()
56
+ if not source_sql:
57
+ raise click.ClickException(
58
+ FeedbackManager.error_parsing_node(node=node["name"], pipe=filename, error="Empty query")
59
+ )
60
+ if source_sql.startswith("%"):
56
61
  secrets_list: Optional[List[str]] = None
57
62
  if secrets:
58
63
  secrets_list = list(secrets.keys())
59
64
  # Setting test_mode=True to ignore errors on required parameters and
60
65
  # secrets_in_test_mode=False to raise errors on missing secrets
61
66
  sql, _, variable_warnings = render_sql_template(
62
- sql[1:],
67
+ source_sql[1:],
63
68
  name=node["name"],
64
69
  secrets=secrets_list,
65
70
  test_mode=True,
66
71
  secrets_in_test_mode=ignore_secrets,
67
72
  )
68
73
  doc.warnings = variable_warnings
74
+ if not sql.strip():
75
+ raise click.ClickException(
76
+ FeedbackManager.error_parsing_node(
77
+ node=node["name"],
78
+ pipe=filename,
79
+ error="Template renders to an empty query without parameters",
80
+ )
81
+ )
82
+ else:
83
+ sql = source_sql
69
84
  # it'll fail with a ModuleNotFoundError when the toolset is not available but it returns the parsed doc
70
85
  from tinybird.sql_toolset import format_sql as toolset_format_sql
71
86
 
@@ -79,13 +94,15 @@ def parse_pipe(
79
94
  )
80
95
  )
81
96
  except ValueError as e:
82
- t, template_variables, _ = get_template_and_variables(sql, name=node["name"])
97
+ source_sql = node.get("sql", "")
98
+ source_sql_stripped = source_sql.strip()
99
+ t, template_variables, _ = get_template_and_variables(source_sql, name=node["name"])
83
100
 
84
- if sql.strip()[0] != "%" and len(template_variables) > 0:
101
+ if not source_sql_stripped.startswith("%") and len(template_variables) > 0:
85
102
  raise click.ClickException(FeedbackManager.error_template_start(filename=filename))
86
103
  raise click.ClickException(
87
104
  FeedbackManager.error_parsing_file(
88
- filename=filename, lineno="", error=f"{str(e)} + SQL(value error): {sql}"
105
+ filename=filename, lineno="", error=f"{str(e)} + SQL(value error): {source_sql}"
89
106
  )
90
107
  )
91
108
  except UnClosedIfError as e:
@@ -864,6 +864,9 @@ class FeedbackManager:
864
864
  success_total_rows = success_message("** Total rows in {datasource}: {total_rows}")
865
865
  success_appended_datasource = success_message("** Data appended to Data Source '{datasource}' successfully!")
866
866
  success_replaced_datasource = success_message("** Data replaced in Data Source '{datasource}' successfully!")
867
+ success_import_job_queued = success_message("** {operation} import job queued: {job_id}")
868
+ success_import_job_completed = success_message("** {operation} import completed: {job_id}")
869
+ info_import_job_status = info_message("Check status: tb job details {job_id}")
867
870
  success_auth = success_message(
868
871
  "** Auth successful! \n** Configuration written to .tinyb file, consider adding it to .gitignore"
869
872
  )
tinybird/sql_template.py CHANGED
@@ -1396,7 +1396,7 @@ _namespace = {
1396
1396
  }
1397
1397
 
1398
1398
 
1399
- reserved_vars = set(["_tt_tmp", "_tt_append", "isinstance", "str", "error", "custom_error", *list(vars(builtins))])
1399
+ reserved_vars = {"_tt_tmp", "_tt_append", "isinstance", "str", "error", "custom_error", *list(vars(builtins))}
1400
1400
  for p in DEFAULT_PARAM_NAMES: # we handle these in an specific manner
1401
1401
  reserved_vars.discard(p) # `format` is part of builtins
1402
1402
  # Allow 'id' to be used as a template parameter - https://gitlab.com/tinybird/analytics/-/issues/19119
tinybird/sql_toolset.py CHANGED
@@ -643,7 +643,7 @@ def replace_tables(
643
643
 
644
644
  if current_replacements:
645
645
  # We need to transform the dictionary into something cacheable, so a sorted tuple of tuples it is
646
- r = tuple(sorted([(k, v) for k, v in current_replacements.items()]))
646
+ r = tuple(sorted(current_replacements.items()))
647
647
  sql = replace_tables_chquery_cached(
648
648
  sql,
649
649
  r,
tinybird/tb/__cli__.py CHANGED
@@ -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__ = '4.6.13.dev0'
8
- __revision__ = '9f77ad2'
7
+ __version__ = '4.6.15.dev0'
8
+ __revision__ = '8311ae9'
tinybird/tb/client.py CHANGED
@@ -465,6 +465,7 @@ class TinyB:
465
465
  sql_condition: Optional[str] = None,
466
466
  format: str = "csv",
467
467
  replace_options: Optional[Set[str]] = None,
468
+ use_v1: bool = False,
468
469
  ):
469
470
  params = {"name": datasource_name, "mode": mode, "format": format, "debug": "blocks_block_log"}
470
471
 
@@ -476,6 +477,30 @@ class TinyB:
476
477
 
477
478
  with open(file, "rb") as content:
478
479
  file_content = content.read()
480
+ content_types = {
481
+ "csv": "text/csv",
482
+ "ndjson": "application/x-ndjson",
483
+ "parquet": "application/vnd.apache.parquet",
484
+ }
485
+ headers = {"Content-Type": content_types[format]}
486
+ if str(file).endswith(".gz"):
487
+ headers["Content-Encoding"] = "gzip"
488
+ if use_v1:
489
+ v1_params = {"format": format}
490
+ if sql_condition:
491
+ v1_params["replace_condition"] = sql_condition
492
+ if replace_options:
493
+ for option in list(replace_options):
494
+ v1_params[option] = "true"
495
+ res = self._req(
496
+ f"/v1/datasources/{quote(datasource_name, safe='')}/{mode}?{urlencode(v1_params, safe='')}",
497
+ data=file_content,
498
+ headers=headers,
499
+ method="POST",
500
+ )
501
+ if "error" in res:
502
+ raise Exception(res["error"])
503
+ return res
479
504
  if format == "csv":
480
505
  files = {"csv": ("csv", file_content)}
481
506
  else:
@@ -925,7 +925,8 @@ def push_data(
925
925
  replace_options=None,
926
926
  concurrency: int = 1,
927
927
  silent: bool = False,
928
- ):
928
+ use_v1: bool = False,
929
+ ) -> Optional[list[str]]:
929
930
  if url and type(url) is tuple:
930
931
  url = url[0]
931
932
 
@@ -962,6 +963,8 @@ def push_data(
962
963
  datasource_name: str, url: str, mode: str, sql_condition: Optional[str], replace_options: Optional[Set[str]]
963
964
  ):
964
965
  parsed = urlparse(url)
966
+ if use_v1 and parsed.scheme in ("http", "https"):
967
+ raise CLIException("--experimental=use_v1 only supports local files.")
965
968
  # poor man's format detection
966
969
  _format = get_format_from_filename_or_url(url)
967
970
  if parsed.scheme in ("http", "https"):
@@ -982,8 +985,15 @@ def push_data(
982
985
  sql_condition=sql_condition,
983
986
  format=_format,
984
987
  replace_options=replace_options,
988
+ use_v1=use_v1,
985
989
  )
986
990
 
991
+ if use_v1:
992
+ job_id = res.get("id") or res.get("import_id")
993
+ if not isinstance(job_id, str):
994
+ raise CLIException("The v1 import response did not include a job ID.")
995
+ return job_id
996
+
987
997
  datasource_name = res["datasource"]["name"]
988
998
  try:
989
999
  datasource = client.get_datasource(datasource_name)
@@ -1014,6 +1024,8 @@ def push_data(
1014
1024
  try:
1015
1025
  tasks = [process_url(datasource_name, url, mode, sql_condition, replace_options) for url in urls]
1016
1026
  output = gather_with_concurrency(concurrency, *tasks)
1027
+ if use_v1:
1028
+ return list(output)
1017
1029
  parser, total_rows, appended_rows = list(output)[-1]
1018
1030
  except AuthNoTokenException:
1019
1031
  raise
@@ -1031,6 +1043,8 @@ def push_data(
1031
1043
 
1032
1044
  click.echo(FeedbackManager.success_progress_blocks())
1033
1045
 
1046
+ return None
1047
+
1034
1048
 
1035
1049
  def sync_data(ctx, datasource_name: str, yes: bool):
1036
1050
  client: TinyB = ctx.obj["client"]
@@ -85,7 +85,7 @@ class CLIConfig:
85
85
  def to_dict(self) -> Dict[str, Any]:
86
86
  """Helper to ease"""
87
87
  result: Dict[str, Any] = {}
88
- result.update(dict((v.name, deepcopy(v.value)) for v in self._values.values()))
88
+ result.update({v.name: deepcopy(v.value) for v in self._values.values()})
89
89
  return result
90
90
 
91
91
  def __getitem__(self, key) -> Any:
@@ -951,7 +951,7 @@ def process_file(
951
951
  "filename": filename,
952
952
  "name": name + version,
953
953
  "nodes": nodes,
954
- "deps": [x for x in set(deps)],
954
+ "deps": list(set(deps)),
955
955
  "tokens": doc.tokens,
956
956
  "description": description,
957
957
  "warnings": doc.warnings,
@@ -162,12 +162,12 @@ class PipeChecker(unittest.TestCase):
162
162
 
163
163
  if self.ignore_order:
164
164
  current_data = (
165
- sorted(normalize_array(current_data), key=itemgetter(*[k for k in current_data[0].keys()]))
165
+ sorted(normalize_array(current_data), key=itemgetter(*list(current_data[0].keys())))
166
166
  if len(current_data) > 0
167
167
  else current_data
168
168
  )
169
169
  checker_data = (
170
- sorted(normalize_array(checker_data), key=itemgetter(*[k for k in checker_data[0].keys()]))
170
+ sorted(normalize_array(checker_data), key=itemgetter(*list(checker_data[0].keys())))
171
171
  if len(checker_data) > 0
172
172
  else checker_data
173
173
  )
@@ -992,7 +992,7 @@ def process_file(
992
992
  "filename": filename,
993
993
  "name": name + version,
994
994
  "nodes": nodes,
995
- "deps": [x for x in set(deps)],
995
+ "deps": list(set(deps)),
996
996
  "tokens": doc.tokens,
997
997
  "description": description,
998
998
  "warnings": doc.warnings,
@@ -35,6 +35,7 @@ from tinybird.tb.modules.common import (
35
35
  get_format_from_filename_or_url,
36
36
  normalize_datasource_name,
37
37
  push_data,
38
+ wait_job,
38
39
  )
39
40
  from tinybird.tb.modules.config import CLIConfig
40
41
  from tinybird.tb.modules.connection_dynamodb import connection_create_dynamodb, validate_dynamodb_table
@@ -58,7 +59,7 @@ from tinybird.tb.modules.create import (
58
59
  generate_gcs_connection_file_with_secrets,
59
60
  )
60
61
  from tinybird.tb.modules.datafile.fixture import persist_fixture
61
- from tinybird.tb.modules.exceptions import CLIDatasourceException
62
+ from tinybird.tb.modules.exceptions import CLIDatasourceException, CLIException
62
63
  from tinybird.tb.modules.feedback_manager import FeedbackManager, get_cli_name
63
64
  from tinybird.tb.modules.llm import LLM
64
65
  from tinybird.tb.modules.llm_utils import extract_xml
@@ -66,6 +67,36 @@ from tinybird.tb.modules.project import Project
66
67
  from tinybird.tb.modules.secret import save_secret_to_env_file
67
68
  from tinybird.tb.modules.telemetry import add_telemetry_event
68
69
 
70
+ EXPERIMENTAL_FEATURE_USE_V1 = "use_v1"
71
+
72
+
73
+ def _echo_v1_import_jobs_queued(job_ids: list[str], operation: str) -> None:
74
+ for job_id in job_ids:
75
+ click.echo(FeedbackManager.success(message=f"✓ {operation} import job queued: {job_id}"))
76
+ click.echo(FeedbackManager.gray(message=f"Check status: tb job details {job_id}"))
77
+
78
+
79
+ def _wait_for_v1_import_jobs(client: TinyB, job_ids: list[str], operation: str) -> None:
80
+ for job_id in job_ids:
81
+ try:
82
+ wait_job(client, job_id, f"/v0/jobs/{job_id}", f"{operation} import")
83
+ except CLIException:
84
+ if _echo_v1_import_job_details(client, job_id):
85
+ raise click.exceptions.Exit(1)
86
+ raise
87
+ click.echo(FeedbackManager.success(message=f"✓ {operation} import completed: {job_id}"))
88
+
89
+
90
+ def _echo_v1_import_job_details(client: TinyB, job_id: str) -> bool:
91
+ try:
92
+ job = client.job(job_id)
93
+ except Exception:
94
+ return False
95
+ click.echo(FeedbackManager.info_job(job=job_id))
96
+ echo_safe_humanfriendly_tables_format_smart_table([job.values()], column_names=job.keys())
97
+ click.echo("\n")
98
+ return True
99
+
69
100
 
70
101
  def _dynamodb_key_schema_sort_key(key_schema: dict[str, str]) -> int:
71
102
  if key_schema.get("key_type") == "HASH":
@@ -213,7 +244,14 @@ def datasource_ls(ctx: Context, match: Optional[str], format_: str):
213
244
  @click.option("--url", type=str, help="URL to append data from")
214
245
  @click.option("--file", type=str, help="Local file to append data from")
215
246
  @click.option("--events", type=str, help="Events to append data from")
247
+ @click.option(
248
+ "--experimental",
249
+ type=click.Choice([EXPERIMENTAL_FEATURE_USE_V1]),
250
+ multiple=True,
251
+ help="Enable an experimental feature. May be specified multiple times.",
252
+ )
216
253
  @click.option("--concurrency", help="How many files to submit concurrently", default=1, hidden=True)
254
+ @click.option("--wait", is_flag=True, default=False, help="Wait for a v1 import job to finish.")
217
255
  @click.pass_context
218
256
  def datasource_append(
219
257
  ctx: Context,
@@ -222,7 +260,9 @@ def datasource_append(
222
260
  url: str,
223
261
  file: str,
224
262
  events: str,
263
+ experimental: tuple[str, ...],
225
264
  concurrency: int,
265
+ wait: bool,
226
266
  ):
227
267
  """
228
268
  Appends data to an existing data source from URL, local file or a connector
@@ -237,6 +277,9 @@ def datasource_append(
237
277
  env: str = ctx.ensure_object(dict)["env"]
238
278
  client: TinyB = ctx.obj["client"]
239
279
  project: Project = ctx.ensure_object(dict)["project"]
280
+ use_v1 = EXPERIMENTAL_FEATURE_USE_V1 in experimental
281
+ if wait and not use_v1:
282
+ raise CLIDatasourceException("--wait requires --experimental=use_v1.")
240
283
 
241
284
  # If data is passed as argument, we detect if it's a JSON object, a URL or a file
242
285
  if data:
@@ -346,6 +389,8 @@ def datasource_append(
346
389
  raise CLIDatasourceException(FeedbackManager.error(message="Invalid ingestion option"))
347
390
 
348
391
  if events:
392
+ if use_v1:
393
+ raise CLIDatasourceException("--experimental=use_v1 only supports local files.")
349
394
  click.echo(FeedbackManager.highlight(message=f"\n» Sending events to {datasource_name}"))
350
395
  events_params = {"name": datasource_name}
351
396
  request_from = getattr(client, "request_from", None)
@@ -382,13 +427,14 @@ def datasource_append(
382
427
  else:
383
428
  click.echo(FeedbackManager.highlight(message=f"\n» Appending data to {datasource_name}"))
384
429
  try:
385
- push_data(
430
+ job_ids = push_data(
386
431
  client,
387
432
  datasource_name,
388
433
  data,
389
434
  mode="append",
390
435
  concurrency=concurrency,
391
436
  silent=True,
437
+ use_v1=use_v1,
392
438
  )
393
439
  except Exception as e:
394
440
  is_quarantined = "quarantine" in str(e)
@@ -398,7 +444,12 @@ def datasource_append(
398
444
  return
399
445
  else:
400
446
  raise e
401
- click.echo(FeedbackManager.success(message="✓ Rows appended!"))
447
+ if use_v1:
448
+ _echo_v1_import_jobs_queued(job_ids or [], "Append")
449
+ if wait:
450
+ _wait_for_v1_import_jobs(client, job_ids or [], "Append")
451
+ else:
452
+ click.echo(FeedbackManager.success(message="✓ Rows appended!"))
402
453
 
403
454
 
404
455
  @datasource.command(name="replace")
@@ -406,6 +457,13 @@ def datasource_append(
406
457
  @click.argument("url", nargs=-1, required=True)
407
458
  @click.option("--sql-condition", default=None, help="SQL WHERE condition to replace data", hidden=True)
408
459
  @click.option("--skip-incompatible-partition-key", is_flag=True, default=False, hidden=True)
460
+ @click.option("--wait", is_flag=True, default=False, help="Wait for a v1 import job to finish.")
461
+ @click.option(
462
+ "--experimental",
463
+ type=click.Choice([EXPERIMENTAL_FEATURE_USE_V1]),
464
+ multiple=True,
465
+ help="Enable an experimental feature. May be specified multiple times.",
466
+ )
409
467
  @click.pass_context
410
468
  def datasource_replace(
411
469
  ctx: Context,
@@ -413,6 +471,8 @@ def datasource_replace(
413
471
  url,
414
472
  sql_condition,
415
473
  skip_incompatible_partition_key,
474
+ experimental: tuple[str, ...],
475
+ wait: bool,
416
476
  ):
417
477
  """
418
478
  Replaces the data in a data source from a URL, local file or a connector
@@ -426,14 +486,22 @@ def datasource_replace(
426
486
  if skip_incompatible_partition_key:
427
487
  replace_options.add("skip_incompatible_partition_key")
428
488
  client: TinyB = ctx.obj["client"]
429
- push_data(
489
+ use_v1 = EXPERIMENTAL_FEATURE_USE_V1 in experimental
490
+ if wait and not use_v1:
491
+ raise CLIDatasourceException("--wait requires --experimental=use_v1.")
492
+ job_ids = push_data(
430
493
  client,
431
494
  datasource_name,
432
495
  url,
433
496
  mode="replace",
434
497
  sql_condition=sql_condition,
435
498
  replace_options=replace_options,
499
+ use_v1=use_v1,
436
500
  )
501
+ if use_v1:
502
+ _echo_v1_import_jobs_queued(job_ids or [], "Replace")
503
+ if wait:
504
+ _wait_for_v1_import_jobs(client, job_ids or [], "Replace")
437
505
 
438
506
 
439
507
  @datasource.command(name="analyze")
@@ -963,7 +963,8 @@ async def push_data(
963
963
  sql_condition: Optional[str] = None,
964
964
  replace_options=None,
965
965
  concurrency: int = 1,
966
- ):
966
+ use_v1: bool = False,
967
+ ) -> Optional[list[str]]:
967
968
  if url and type(url) is tuple:
968
969
  url = url[0]
969
970
  client: TinyB = ctx.obj["client"]
@@ -1000,6 +1001,8 @@ async def push_data(
1000
1001
  datasource_name: str, url: str, mode: str, sql_condition: Optional[str], replace_options: Optional[Set[str]]
1001
1002
  ):
1002
1003
  parsed = urlparse(url)
1004
+ if use_v1 and parsed.scheme in ("http", "https"):
1005
+ raise CLIException("--experimental=use_v1 only supports local files.")
1003
1006
  # poor man's format detection
1004
1007
  _format = get_format_from_filename_or_url(url)
1005
1008
  if parsed.scheme in ("http", "https"):
@@ -1020,8 +1023,15 @@ async def push_data(
1020
1023
  sql_condition=sql_condition,
1021
1024
  format=_format,
1022
1025
  replace_options=replace_options,
1026
+ use_v1=use_v1,
1023
1027
  )
1024
1028
 
1029
+ if use_v1:
1030
+ job_id = res.get("id") or res.get("import_id")
1031
+ if not isinstance(job_id, str):
1032
+ raise CLIException("The v1 import response did not include a job ID.")
1033
+ return job_id
1034
+
1025
1035
  datasource_name = res["datasource"]["name"]
1026
1036
  try:
1027
1037
  datasource = await client.get_datasource(datasource_name)
@@ -1052,6 +1062,8 @@ async def push_data(
1052
1062
  try:
1053
1063
  tasks = [process_url(datasource_name, url, mode, sql_condition, replace_options) for url in urls]
1054
1064
  output = await gather_with_concurrency(concurrency, *tasks)
1065
+ if use_v1:
1066
+ return list(output)
1055
1067
  parser, total_rows, appended_rows = list(output)[-1]
1056
1068
  except AuthNoTokenException:
1057
1069
  raise
@@ -1072,6 +1084,8 @@ async def push_data(
1072
1084
  click.echo(FeedbackManager.success_appended_datasource(datasource=datasource_name))
1073
1085
  click.echo(FeedbackManager.info_data_pushed(datasource=datasource_name))
1074
1086
 
1087
+ return None
1088
+
1075
1089
 
1076
1090
  async def sync_data(ctx, datasource_name: str, yes: bool):
1077
1091
  client: TinyB = ctx.obj["client"]
@@ -88,7 +88,7 @@ class CLIConfig:
88
88
  def to_dict(self) -> Dict[str, Any]:
89
89
  """Helper to ease"""
90
90
  result: Dict[str, Any] = self._parent.to_dict() if self._parent else {}
91
- result.update(dict((v.name, deepcopy(v.value)) for v in self._values.values()))
91
+ result.update({v.name: deepcopy(v.value) for v in self._values.values()})
92
92
  return result
93
93
 
94
94
  def __getitem__(self, key) -> Any:
@@ -916,10 +916,10 @@ def _parse(reader: _TemplateReader, template, in_block=None, in_loop=None):
916
916
 
917
917
  # Intermediate ("else", "elif", etc) blocks
918
918
  intermediate_blocks = {
919
- "else": set(["if", "for", "while", "try"]),
920
- "elif": set(["if"]),
921
- "except": set(["try"]),
922
- "finally": set(["try"]),
919
+ "else": {"if", "for", "while", "try"},
920
+ "elif": {"if"},
921
+ "except": {"try"},
922
+ "finally": {"try"},
923
923
  }
924
924
  allowed_parents = intermediate_blocks.get(operator)
925
925
 
@@ -997,7 +997,7 @@ def _parse(reader: _TemplateReader, template, in_block=None, in_loop=None):
997
997
 
998
998
  elif operator in ("break", "continue"):
999
999
  if not in_loop:
1000
- reader.raise_parse_error("%s outside %s block" % (operator, set(["for", "while"])))
1000
+ reader.raise_parse_error("%s outside %s block" % (operator, {"for", "while"}))
1001
1001
  body.chunks.append(_Statement(contents, line))
1002
1002
  continue
1003
1003
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: tinybird
3
- Version: 4.6.13.dev0
3
+ Version: 4.6.15.dev0
4
4
  Summary: Tinybird Command Line Tool
5
5
  Home-page: https://www.tinybird.co/docs/forward/commands
6
6
  Author: Tinybird
@@ -52,6 +52,11 @@ The Tinybird command-line tool allows you to use all the Tinybird functionality
52
52
  Changelog
53
53
  ----------
54
54
 
55
+ 4.6.13
56
+ ********
57
+
58
+ - `Added` ``tb datasource append`` and ``tb datasource replace`` support the experimental ``--experimental=use_v1`` option for local CSV, NDJSON, and Parquet files. It submits the import through the v1 endpoint and prints the queued job ID; pass ``--wait`` to wait for completion.
59
+
55
60
  4.6.12
56
61
  ********
57
62
 
@@ -1,43 +1,43 @@
1
1
  tinybird/context.py,sha256=o4yvlXPkMLmdh-XJl3wpmqPAMeRRz5ScKzKlHHKn_I8,1201
2
2
  tinybird/datatypes.py,sha256=DRScTI1-lgYjbC7u_4qxOLFleWL-vief_eBg_9WU37U,11304
3
- tinybird/feedback_manager.py,sha256=ZnRsExCkEZKuslmSxn3m706-0UIZ_qOpdek9ar16KOI,68001
3
+ tinybird/feedback_manager.py,sha256=hbO4o16rleDxzfkv04fTeJIjAxlpn477qTK0QCuleTA,68274
4
4
  tinybird/git_settings.py,sha256=mqWgeboOlOFsSo97qyv595UCR2R1QCAqT4GTawBNPBg,3935
5
5
  tinybird/prompts.py,sha256=FNYpphDYlrXpm5AQM3yfQPbj4gd_TVnwoaoeswtx0OE,32699
6
6
  tinybird/service_datasources.py,sha256=asBTXONMv7sf7LFBx1a4eTcZCHPUq-I3r030AtorRzY,53643
7
7
  tinybird/sql.py,sha256=L3tTmm62iTrf6WQdcV8mmwrCMitLFUvJ3OfDzyRTMGw,47385
8
- tinybird/sql_template.py,sha256=Mus34RE6DBcq57mGRu6vibXuCgov9htTPqqSkNknmR0,129666
8
+ tinybird/sql_template.py,sha256=dhRiQH6o-ndPkrq73rAaSU6LEqmVShefgNEilwphM2A,129661
9
9
  tinybird/sql_template_fmt.py,sha256=Ma4qcs-2r8ZXQC4GUmrCqYz34DsnGF8k5lE2Jwnr314,10638
10
- tinybird/sql_toolset.py,sha256=I_RHAfhpYuIc3bNY9VcNjQ3zESAawb3D9ZMjb9-ev4M,28519
10
+ tinybird/sql_toolset.py,sha256=qNKHPGKTR4MrMHKkj1qHqmlB1kPqnbT-SozyzUBeD6s,28498
11
11
  tinybird/syncasync.py,sha256=rIPmCvygWSFqfnlVqhZH4N9gVVTvD6DEPsfoxGizYrI,27776
12
- tinybird/tornado_template.py,sha256=1_0nYFk_xJh_TMHh6AKkJILvnNY6xYmaM-uJ3Ofv7e8,42085
12
+ tinybird/tornado_template.py,sha256=8e0ipnBQI4-RO5sFokybDNwkd1CBxGqvnnyJ5kjs5XU,42060
13
13
  tinybird/ch_utils/constants.py,sha256=yTNizMzgYNBzUc2EV3moBfdrDIggOe9hiuAgWF7sv2c,4333
14
14
  tinybird/ch_utils/engine.py,sha256=OkR86FOOUPRpCsRxlR-kunykg-K4Daqo3uS06X1uvYQ,36887
15
- tinybird/datafile/common.py,sha256=pLB5GmCCDLnafDEGp_-HnS8z_dYLTclYSk_bBpEhpro,111128
15
+ tinybird/datafile/common.py,sha256=Cuj6vhmZDQUXFOU2GelkOJqVpyakZ-7bSBdAtHIBMW0,111188
16
16
  tinybird/datafile/exceptions.py,sha256=8rw2umdZjtby85QbuRKFO5ETz_eRHwUY5l7eHsy1wnI,556
17
17
  tinybird/datafile/parse_connection.py,sha256=GxmGp_XnWbDZPDbh_PBxitlIMqZRYfDwxMBw-JQBp1g,1890
18
18
  tinybird/datafile/parse_datasource.py,sha256=yd58HrUF4yNJXLn6OsvKGpZJpvrcjLGAeJG1lgBe_zk,1891
19
- tinybird/datafile/parse_pipe.py,sha256=-9bbgVuiWRyDYydrLVflDBt8GstZotMy6dklsrc6MUY,3859
19
+ tinybird/datafile/parse_pipe.py,sha256=FXtMUmAxqpgvIMziUNdAyCg5tUsSFdd83p8ZGZS3uws,4657
20
20
  tinybird/iterating/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
21
21
  tinybird/iterating/data_branch_modes.py,sha256=5YuDa-gr8mKwmES8Xro6TRKbQtaOtIw4GbC606Qhu3o,184
22
- tinybird/tb/__cli__.py,sha256=GqDS3d3b9YPNF68yqEjPdtNXJzS_oz7KOt2Mo9nxlCk,246
22
+ tinybird/tb/__cli__.py,sha256=ioZh5NOhCrtp051ruK5RvBOJQkWu-AmQpiEJV5kL69Y,246
23
23
  tinybird/tb/check_pypi.py,sha256=Gp0HkHHDFMSDL6nxKlOY51z7z1Uv-2LRexNTZSHHGmM,552
24
24
  tinybird/tb/cli.py,sha256=IjiGfNIpxSxi1odK1kMj9s8lEhx3sAUgGA263XdmyR0,1119
25
- tinybird/tb/client.py,sha256=LQ470JkU9NQcmM_rjElD_aV2l8nlWHTKuqzC3Yx1IzM,57605
25
+ tinybird/tb/client.py,sha256=_Izo7DrhaAtH_MgMQsL1c3mjQzTNYNk09oSoftsOlyo,58588
26
26
  tinybird/tb/config.py,sha256=l6NtYvSPZDVOtt1W4G4ExXXDIf0hm6lvRnRoDMbdrsY,5429
27
27
  tinybird/tb/modules/branch.py,sha256=U50nj2kZllCkOHQfJWQ-YQ260pvlcssgStMSovmqMiU,10157
28
28
  tinybird/tb/modules/build.py,sha256=q7-aVM7q1tApiax_y6vYSCZq4cJ9ATSAm9D-elpNp7I,6543
29
29
  tinybird/tb/modules/build_common.py,sha256=o04aeaoyGTnwhR0cEXAgQzc7SJya97YECoEihsi4SyU,24979
30
30
  tinybird/tb/modules/cicd.py,sha256=IO4qqsoLRXcubALb7vx_QnRpg3zIIxfaVO9bGomlESY,8267
31
31
  tinybird/tb/modules/cli.py,sha256=oerpcsZ3vLsLZdCjgtVa6F9D3OFj-cqWFJfX-M40N2c,44038
32
- tinybird/tb/modules/common.py,sha256=XWuEIpMo3-JkplFqPzgxQqJDKAZD7rujY2VOXerGPPQ,93355
33
- tinybird/tb/modules/config.py,sha256=kZsMBf_qrGXPvhx1GW46DXS62ClVIKFFPjDXEZyGeyE,11181
32
+ tinybird/tb/modules/common.py,sha256=H74TVe8Bd7LX5NC2pUbkW1FP1vhxmTE65uJwkRG7r5w,93880
33
+ tinybird/tb/modules/config.py,sha256=AHBnVIO25JuOsygaU0gh0Iiw5jUgt6lXX5yrets_Y28,11175
34
34
  tinybird/tb/modules/connection.py,sha256=HwHn0YgwqcKEYCLr2OqDzJzAUFd65Wv8MZiSUw_TLII,18452
35
35
  tinybird/tb/modules/connection_dynamodb.py,sha256=vaB28d6t8nOd6kcUQGMUkl3IZin5DYSBN2TBPm2968Q,9490
36
36
  tinybird/tb/modules/connection_kafka.py,sha256=Qc8uUNl5SvUcUGb_aG3AirYKw6673FoX1Sfdlzgz6Y8,33530
37
37
  tinybird/tb/modules/connection_s3.py,sha256=eR7lsrCYbVWZ8LI7F5MUBxm8_DAvuaVSKqUDq9CUUks,16499
38
38
  tinybird/tb/modules/copy.py,sha256=Apzjxiyinp6KmgamypPKEe3BAnpxG7MwYcSYkHiG8sA,6033
39
39
  tinybird/tb/modules/create.py,sha256=G3_wCUjNVzBiowo70NgwzmUUXXOxYO2LWjF9eEfcffc,22947
40
- tinybird/tb/modules/datasource.py,sha256=baxfUQd7vDyEDh65fyOa2X5Xwf4OS3ligyznbbpAo6Q,76671
40
+ tinybird/tb/modules/datasource.py,sha256=UZ2wTy7GtoLL3uyPyt6Qti9yVakmhUNDv50NWfvCT4I,79393
41
41
  tinybird/tb/modules/deployment.py,sha256=TNDlvaYmk-zouvaAdMXlyFPbgbnMKQOt76xpZBggJI0,21184
42
42
  tinybird/tb/modules/deployment_common.py,sha256=fLPWNNs8ZwSkWHJjLeqQUqTbKqnnhW1y8yKffBdDCo0,31948
43
43
  tinybird/tb/modules/deprecations.py,sha256=XXekrzPO9v12F1ToQDUGzLYJJ2wrEUlGKOkLCSdfHiM,4935
@@ -79,7 +79,7 @@ tinybird/tb/modules/ts_project.py,sha256=XeDN-3gthT7GZYIFn0l-y5RJaofB_2T-I8gq6dL
79
79
  tinybird/tb/modules/watch.py,sha256=HTZwqlGWDLJPBxBh04J0tAZDP_6BhqLupHBDx4uZDYo,5218
80
80
  tinybird/tb/modules/workspace.py,sha256=7shWyyZD9IT32EeP0aEgsZGk0U1ZdT6hWnVfctRoIJk,8939
81
81
  tinybird/tb/modules/workspace_members.py,sha256=8oQLTczEh9cIdD3iF-N3SJuqLtKdF-_g-YzeVaqKGP0,9486
82
- tinybird/tb/modules/datafile/build.py,sha256=WtxPakSjnpQhs2SxyF8Ckm_BdOVOUMlRdhPjVFli2SE,40910
82
+ tinybird/tb/modules/datafile/build.py,sha256=fkbh_JD9hcslF3lekkY9YUnTFYWqaGA6Y6stz7pNsm0,40903
83
83
  tinybird/tb/modules/datafile/build_common.py,sha256=2yNdxe49IMA9wNvl25NemY2Iaz8L66snjOdT64dm1is,4511
84
84
  tinybird/tb/modules/datafile/build_datasource.py,sha256=keAx2lchYoxEDXQfTBtAe94Oyr4zfw3kWMumBFNtYso,16914
85
85
  tinybird/tb/modules/datafile/build_pipe.py,sha256=jQYyIw4imqx25-5lN8IrXTecSmxXo2xgIm7gPuibq9c,11269
@@ -89,18 +89,18 @@ tinybird/tb/modules/datafile/format_common.py,sha256=pLB508Akui1G1-X2mNirv2WvjZ_
89
89
  tinybird/tb/modules/datafile/format_connection.py,sha256=ieD9Jb6In6PmZqIysZ1tD1JBwfI5tV1RG1trweMR9F4,5089
90
90
  tinybird/tb/modules/datafile/format_datasource.py,sha256=rqA0Mr_3x5vaXe5vXWs7Fe2XmgVWn4niSlpvLnZh4vg,5325
91
91
  tinybird/tb/modules/datafile/format_pipe.py,sha256=9UuUsl5DjV4tJIRr6Whuv-AtIM9Gx7R3396AbKjHaJ4,7724
92
- tinybird/tb/modules/datafile/pipe_checker.py,sha256=dxsCQoA6ruxg1fvF6sMLFowpjaqws8lUQcM7XyhgZPE,24609
93
- tinybird/tb/modules/datafile/playground.py,sha256=5AUFNi2Oh6VQdaoCbQ4JeZAXKD0xzCOEUkEk5IXOj00,40973
92
+ tinybird/tb/modules/datafile/pipe_checker.py,sha256=0hg6x2kW4wekEfRZra3bS4mNuBPQC5ZPoCG8V5L_WOE,24595
93
+ tinybird/tb/modules/datafile/playground.py,sha256=lri033He_-HgzrKkH6nV3wOJqIqY_y9Fz49hi61zOio,40966
94
94
  tinybird/tb/modules/datafile/pull.py,sha256=C-px80jgA6pwPaGi5mcF5HjqpgwC0grso-F9SDDnRT0,6447
95
95
  tinybird/tb/modules/tinyunit/tinyunit.py,sha256=ZhKSwk5uIRggxDAPaqYZrcMMI0hLN1qGNIf-eRoJJWc,11055
96
96
  tinybird/tb_cli_modules/cicd.py,sha256=i2Mw8AbmEVNBcEPYdio7liy3PGqh1ezVFZ0OmJ9ww5o,13809
97
- tinybird/tb_cli_modules/common.py,sha256=rp1IAfDhbPSwnoMQyW4ZniYDqNZepo1cBgwL8naAa8U,76711
98
- tinybird/tb_cli_modules/config.py,sha256=Ey9yqM27C4Irglm5-63RXte8K0bFh8ConKdIoAaQv-k,11188
97
+ tinybird/tb_cli_modules/common.py,sha256=OzXkQGTnlUtOfx3EOdSLreewFRu_zaTXLSYDG-MT1_I,77236
98
+ tinybird/tb_cli_modules/config.py,sha256=lukiJeihI09blGeeS0FWeqVbKWhqzZmyoaJDIL0NkyQ,11182
99
99
  tinybird/tb_cli_modules/exceptions.py,sha256=pmucP4kTF4irIt7dXiG-FcnI-o3mvDusPmch1L8RCWk,3367
100
100
  tinybird/tb_cli_modules/regions.py,sha256=QjsL5H6Kg-qr0aYVLrvb1STeJ5Sx_sjvbOYO0LrEGMk,166
101
101
  tinybird/tb_cli_modules/telemetry.py,sha256=W098H6jmS4kpE7hN3tadaREBTf7oMocel-lkKWN0pU8,10466
102
- tinybird-4.6.13.dev0.dist-info/METADATA,sha256=gJeFvTk8TuQQGSnCdwvIHXhQSPJhzgXW3PHVqHmDFyM,15709
103
- tinybird-4.6.13.dev0.dist-info/WHEEL,sha256=beeZ86-EfXScwlR_HKu4SllMC9wUEj_8Z_4FJ3egI2w,91
104
- tinybird-4.6.13.dev0.dist-info/entry_points.txt,sha256=LwdHU6TfKx4Qs7BqqtaczEZbImgU7Abe9Lp920zb_fo,43
105
- tinybird-4.6.13.dev0.dist-info/top_level.txt,sha256=ZIQJTPCzMqnfDzM_hEGZrJqDSEcKnIK_49T86DGWpyQ,78
106
- tinybird-4.6.13.dev0.dist-info/RECORD,,
102
+ tinybird-4.6.15.dev0.dist-info/METADATA,sha256=dlQkiLbkh-i9TK1RHXR-nSOok3f_NY_O1Q13N7oJ0N0,16008
103
+ tinybird-4.6.15.dev0.dist-info/WHEEL,sha256=beeZ86-EfXScwlR_HKu4SllMC9wUEj_8Z_4FJ3egI2w,91
104
+ tinybird-4.6.15.dev0.dist-info/entry_points.txt,sha256=LwdHU6TfKx4Qs7BqqtaczEZbImgU7Abe9Lp920zb_fo,43
105
+ tinybird-4.6.15.dev0.dist-info/top_level.txt,sha256=ZIQJTPCzMqnfDzM_hEGZrJqDSEcKnIK_49T86DGWpyQ,78
106
+ tinybird-4.6.15.dev0.dist-info/RECORD,,