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

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.dev132'
8
+ __revision__ = '1b7e7c7'
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:
@@ -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.dev132
4
4
  Summary: Tinybird Command Line Tool
5
5
  Home-page: https://www.tinybird.co/docs/cli/introduction.html
6
6
  Author: Tinybird
@@ -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=oGseGD1BpjIsbfv7MK9OQ6bk6IsHyIvx7ge95AfHy0s,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
@@ -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.dev132.dist-info/METADATA,sha256=dOzbUCj5EukHPN7y4-N3AiXFKRnQNUYz9QgSONHq30I,1612
82
+ tinybird-0.0.1.dev132.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
83
+ tinybird-0.0.1.dev132.dist-info/entry_points.txt,sha256=LwdHU6TfKx4Qs7BqqtaczEZbImgU7Abe9Lp920zb_fo,43
84
+ tinybird-0.0.1.dev132.dist-info/top_level.txt,sha256=VqqqEmkAy7UNaD8-V51FCoMMWXjLUlR0IstvK7tJYVY,54
85
+ tinybird-0.0.1.dev132.dist-info/RECORD,,