tinybird 0.0.1.dev131__py3-none-any.whl → 0.0.1.dev133__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.

Potentially problematic release.


This version of tinybird might be problematic. Click here for more details.

@@ -910,9 +910,6 @@ Ready? """
910
910
  success_delete_rows_datasource = success_message(
911
911
  "** Data Source '{datasource}' rows deleted matching condition \"{delete_condition}\""
912
912
  )
913
- success_delete_rows_datasource_no_rows = success_message(
914
- "** Data Source '{datasource}' no rows to delete matching condition \"{delete_condition}\""
915
- )
916
913
  success_dry_run_delete_rows_datasource = success_message(
917
914
  "** [DRY RUN] Data Source '{datasource}' rows '{rows}' matching condition \"{delete_condition}\" to be deleted"
918
915
  )
tinybird/tb/__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__ = '0.0.1.dev131'
8
- __revision__ = 'aa5823b'
7
+ __version__ = '0.0.1.dev133'
8
+ __revision__ = 'aa46678'
tinybird/tb/client.py CHANGED
@@ -568,12 +568,8 @@ class TinyB:
568
568
  populate_subset: bool = False,
569
569
  populate_condition: Optional[str] = None,
570
570
  truncate: bool = True,
571
- unlink_on_populate_error: bool = False,
572
571
  ):
573
- params: Dict[str, Any] = {
574
- "truncate": "true" if truncate else "false",
575
- "unlink_on_populate_error": "true" if unlink_on_populate_error else "false",
576
- }
572
+ params: Dict[str, Any] = {"truncate": "true" if truncate else "false", "unlink_on_populate_error": "false"}
577
573
  if populate_subset:
578
574
  params.update({"populate_subset": populate_subset})
579
575
  if populate_condition:
@@ -322,13 +322,6 @@ async def datasource_delete_rows(ctx, datasource_name, sql_condition, yes, wait,
322
322
  )
323
323
  )
324
324
  return
325
- if res is None: # 204,205
326
- click.echo(
327
- FeedbackManager.success_delete_rows_datasource_no_rows(
328
- datasource=datasource_name, delete_condition=sql_condition
329
- )
330
- )
331
- return
332
325
  job_id = res["job_id"]
333
326
  job_url = res["job_url"]
334
327
  click.echo(FeedbackManager.info_datasource_delete_rows_job_url(url=job_url))
@@ -686,7 +686,6 @@ Please enter the ARN of the role you just created"""
686
686
  warning_confirm_delete_rows_datasource = prompt_message(
687
687
  "Do you want to delete {datasource}'s rows matching condition \"{delete_condition}\"? Once deleted, they can't be recovered"
688
688
  )
689
-
690
689
  warning_confirm_delete_pipe = prompt_message('Do you want to remove the pipe "{pipe}"?')
691
690
  warning_confirm_copy_pipe = prompt_message('Do you want to run a copy job from the pipe "{pipe}"?')
692
691
  warning_confirm_sink_job = prompt_message('Do you want to run a sink job from the pipe "{pipe}"?')
@@ -1005,9 +1004,6 @@ Please enter the ARN of the role you just created"""
1005
1004
  success_delete_rows_datasource = success_message(
1006
1005
  "** Data Source '{datasource}' rows deleted matching condition \"{delete_condition}\""
1007
1006
  )
1008
- success_delete_rows_datasource_no_rows = success_message(
1009
- "** Data Source '{datasource}' no rows to delete matching condition \"{delete_condition}\""
1010
- )
1011
1007
  success_dry_run_delete_rows_datasource = success_message(
1012
1008
  "** [DRY RUN] Data Source '{datasource}' rows '{rows}' matching condition \"{delete_condition}\" to be deleted"
1013
1009
  )
@@ -7,7 +7,6 @@ from tinybird.tb.client import TinyB
7
7
  from tinybird.tb.modules.cli import cli
8
8
  from tinybird.tb.modules.common import (
9
9
  coro,
10
- create_tb_client,
11
10
  echo_safe_humanfriendly_tables_format_smart_table,
12
11
  wait_job,
13
12
  )
@@ -84,12 +83,6 @@ async def materialization_ls(ctx: click.Context, match: str, format_: str):
84
83
  @click.option(
85
84
  "--truncate", is_flag=True, default=False, help="Truncates the materialized data source before populating it."
86
85
  )
87
- @click.option(
88
- "--unlink-on-populate-error",
89
- is_flag=True,
90
- default=False,
91
- help="If the populate job fails the materialized view is unlinked and new data won't be ingested in the materialized view. First time a populate job fails, the materialized view is always unlinked.",
92
- )
93
86
  @click.option(
94
87
  "--wait",
95
88
  is_flag=True,
@@ -104,11 +97,10 @@ async def pipe_populate(
104
97
  node: str,
105
98
  sql_condition: str,
106
99
  truncate: bool,
107
- unlink_on_populate_error: bool,
108
100
  wait: bool,
109
101
  ):
110
102
  """Populate the result of a Materialized Node into the target materialized view"""
111
- cl = create_tb_client(ctx)
103
+ cl: TinyB = ctx.ensure_object(dict)["client"]
112
104
 
113
105
  pipe = await cl.pipe(pipe_name)
114
106
 
@@ -126,13 +118,7 @@ async def pipe_populate(
126
118
 
127
119
  node = materialized_ids[0]
128
120
 
129
- response = await cl.populate_node(
130
- pipe_name,
131
- node,
132
- populate_condition=sql_condition,
133
- truncate=truncate,
134
- unlink_on_populate_error=unlink_on_populate_error,
135
- )
121
+ response = await cl.populate_node(pipe_name, node, populate_condition=sql_condition, truncate=truncate)
136
122
  if "job" not in response:
137
123
  raise CLIPipeException(response)
138
124
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: tinybird
3
- Version: 0.0.1.dev131
3
+ Version: 0.0.1.dev133
4
4
  Summary: Tinybird Command Line Tool
5
5
  Home-page: https://www.tinybird.co/docs/cli/introduction.html
6
6
  Author: Tinybird
@@ -1,7 +1,7 @@
1
1
  tinybird/connectors.py,sha256=7Gjms7b5MAaBFGi3xytsJurCylprONpFcYrzp4Fw2Rc,15241
2
2
  tinybird/context.py,sha256=FfqYfrGX_I7PKGTQo93utaKPDNVYWelg4Hsp3evX5wM,1291
3
3
  tinybird/datatypes.py,sha256=r4WCvspmrXTJHiPjjyOTiZyZl31FO3Ynkwq4LQsYm6E,11059
4
- tinybird/feedback_manager.py,sha256=PNWgeLuwNCvPMkjkRt5j1l4ax1I3NYxtSoH5izN0R5Q,69435
4
+ tinybird/feedback_manager.py,sha256=a_ZhFX2zcB7vRknIcmHKMdQbb0c7TqlTBQ_5hPuWh88,69267
5
5
  tinybird/git_settings.py,sha256=Sw_8rGmribEFJ4Z_6idrVytxpFYk7ez8ei0qHULzs3E,3934
6
6
  tinybird/prompts.py,sha256=6J-dE0gOSOaIwdEwJUhEQS1Ztllz_qZnpnrv-tDoJWA,35511
7
7
  tinybird/sql.py,sha256=C_B81wwv3BsqyXGhF5oTk9DcTUkrp7NwIFqSzd3Dmjc,47854
@@ -12,9 +12,9 @@ tinybird/syncasync.py,sha256=IPnOx6lMbf9SNddN1eBtssg8vCLHMt76SuZ6YNYm-Yk,27761
12
12
  tinybird/tornado_template.py,sha256=jjNVDMnkYFWXflmT8KU_Ssbo5vR8KQq3EJMk5vYgXRw,41959
13
13
  tinybird/ch_utils/constants.py,sha256=aYvg2C_WxYWsnqPdZB1ZFoIr8ZY-XjUXYyHKE9Ansj0,3890
14
14
  tinybird/ch_utils/engine.py,sha256=BZuPM7MFS7vaEKK5tOMR2bwSAgJudPrJt27uVEwZmTY,40512
15
- tinybird/tb/__cli__.py,sha256=nOKsV_TLNdzOK9ag19fi9NM1zZfOL0mXv2z7VrV7-o4,252
15
+ tinybird/tb/__cli__.py,sha256=pUQYSMtGIN0vu5mnf42KNZzpAaEz0aTgpMckE_sV-c0,252
16
16
  tinybird/tb/cli.py,sha256=Xw5EhwCQu6Xx55DzoJsZJODdi7tkA391mii-xgGnpEU,1066
17
- tinybird/tb/client.py,sha256=oa0pR46WvzDoqpyaDU-lRu33I0cZhtZVDqDQz2RHMWQ,56085
17
+ tinybird/tb/client.py,sha256=aaPKq5C77e72kR7IMv9WrvnvNki8mKMOTi9EsCp0eUc,55962
18
18
  tinybird/tb/config.py,sha256=iIia7F67UI9p51Ja4jALonyttIi4eH7PwOn3HvcvOb8,4008
19
19
  tinybird/tb/modules/auth.py,sha256=_OeYnmTH83lnqCgQEdS6K0bx1KBUeRmZk2M7JnRmWpk,9037
20
20
  tinybird/tb/modules/build.py,sha256=KqXMJJW8JEuTlH3KyV1ylCLUob_oFhwDTM7bYLgrK9s,17359
@@ -25,11 +25,11 @@ tinybird/tb/modules/config.py,sha256=ziqW_t_mRVvWOd85VoB4vKyvgMkEfpXDf9H4v38p2xc
25
25
  tinybird/tb/modules/connection.py,sha256=7qJGhTG0U__ZhY2HBWP8F1Z6tXrxwgAU-eOup6pXhhU,6905
26
26
  tinybird/tb/modules/copy.py,sha256=2Mm4FWKehOG7CoOhiF1m9UZJgJn0W1_cMolqju8ONYg,5805
27
27
  tinybird/tb/modules/create.py,sha256=PDAuzeBiqN9q7GY2p4zcMWDojdNjz6_aJgI5dxR-FVM,16701
28
- tinybird/tb/modules/datasource.py,sha256=IzWF7wpsmIEYt6NwjYFHkuiAqgC7fXM0kzR8du8xxz0,17214
28
+ tinybird/tb/modules/datasource.py,sha256=XvY7iTRefG9iEBLQkqBSF47bK-CrLu2AzDnigGI2mSc,16925
29
29
  tinybird/tb/modules/deployment.py,sha256=4Zt7jPbqt18fB5kPx7DbO91Bh6xzBBTEUFY7O89shuU,19560
30
30
  tinybird/tb/modules/endpoint.py,sha256=XySDt3pk66vxOZ0egUfz4bY8bEk3BjOXkv-L0OIJ3sc,12083
31
31
  tinybird/tb/modules/exceptions.py,sha256=4A2sSjCEqKUMqpP3WI00zouCWW4uLaghXXLZBSw04mY,3363
32
- tinybird/tb/modules/feedback_manager.py,sha256=B8RsN2fV6ZwcKBXVvS4gVkwl-Mb0QgezVeMc3vHNvDI,74348
32
+ tinybird/tb/modules/feedback_manager.py,sha256=8I6n5JFPS4xP-Pfb9iu7hqx5VX773uGDXH2E5QeANeg,74179
33
33
  tinybird/tb/modules/infra.py,sha256=eX0StUipaXaxIhMxO82cnAnFKTCa7EPOt-e8pWoSLX0,33206
34
34
  tinybird/tb/modules/job.py,sha256=n4dSSBgnA8NqD7srGahf2xRj6wxkmX9Vl0J-QJ_a2w0,2966
35
35
  tinybird/tb/modules/llm.py,sha256=KfsCYmKeW1VQz0iDZhGKCRkQv_Y3kTHh6JuxvofOguE,1076
@@ -38,7 +38,7 @@ tinybird/tb/modules/local.py,sha256=702U0p9pPFwZHkVNEsp2Y5gJxBKtOvd2XoS4dn1p-m8,
38
38
  tinybird/tb/modules/local_common.py,sha256=75Mje9_vkq7VehSKHS1zJB8UyVsJpqDFmuJGWwQmrXQ,3193
39
39
  tinybird/tb/modules/login.py,sha256=rLYdV7MLCTT1F4VBAWGv6SO9efMiM9-977ayLecUzjI,6842
40
40
  tinybird/tb/modules/logout.py,sha256=ULooy1cDBD02-r7voZmhV7udA0ML5tVuflJyShrh56Y,1022
41
- tinybird/tb/modules/materialization.py,sha256=yIns8ypdFVLWwuCcvAZPBChsuJl2DIxJe6M8UCBHNsU,5752
41
+ tinybird/tb/modules/materialization.py,sha256=GvnItYXzBKRZjcuOIuOEwtdM4LxYbTH4M5vGZR233Hc,5323
42
42
  tinybird/tb/modules/mock.py,sha256=KScG2WohfCjxakBS2Rfb4-7QKS4OSkoVgiMyUvkCWWE,4924
43
43
  tinybird/tb/modules/open.py,sha256=OuctINN77oexpSjth9uoIZPCelKO4Li-yyVxeSnk1io,1371
44
44
  tinybird/tb/modules/pipe.py,sha256=AQKEDagO6e3psPVjJkS_MDbn8aK-apAiLp26k7jgAV0,2432
@@ -78,8 +78,8 @@ tinybird/tb_cli_modules/config.py,sha256=IsgdtFRnUrkY8-Zo32lmk6O7u3bHie1QCxLwgp4
78
78
  tinybird/tb_cli_modules/exceptions.py,sha256=pmucP4kTF4irIt7dXiG-FcnI-o3mvDusPmch1L8RCWk,3367
79
79
  tinybird/tb_cli_modules/regions.py,sha256=QjsL5H6Kg-qr0aYVLrvb1STeJ5Sx_sjvbOYO0LrEGMk,166
80
80
  tinybird/tb_cli_modules/telemetry.py,sha256=Hh2Io8ZPROSunbOLuMvuIFU4TqwWPmQTqal4WS09K1A,10449
81
- tinybird-0.0.1.dev131.dist-info/METADATA,sha256=2zCxBpSMBTE-G4Fr4_A3m-QnCJKGVC37IpyihtPxxgM,1612
82
- tinybird-0.0.1.dev131.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
83
- tinybird-0.0.1.dev131.dist-info/entry_points.txt,sha256=LwdHU6TfKx4Qs7BqqtaczEZbImgU7Abe9Lp920zb_fo,43
84
- tinybird-0.0.1.dev131.dist-info/top_level.txt,sha256=VqqqEmkAy7UNaD8-V51FCoMMWXjLUlR0IstvK7tJYVY,54
85
- tinybird-0.0.1.dev131.dist-info/RECORD,,
81
+ tinybird-0.0.1.dev133.dist-info/METADATA,sha256=y0qf78t8pUbZYXxlRWXKybZCiiGD6UhpW7OombLD4Hs,1612
82
+ tinybird-0.0.1.dev133.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
83
+ tinybird-0.0.1.dev133.dist-info/entry_points.txt,sha256=LwdHU6TfKx4Qs7BqqtaczEZbImgU7Abe9Lp920zb_fo,43
84
+ tinybird-0.0.1.dev133.dist-info/top_level.txt,sha256=VqqqEmkAy7UNaD8-V51FCoMMWXjLUlR0IstvK7tJYVY,54
85
+ tinybird-0.0.1.dev133.dist-info/RECORD,,