tinybird 0.0.1.dev194__py3-none-any.whl → 0.0.1.dev196__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 +2 -2
- tinybird/tb/modules/cli.py +5 -0
- tinybird/tb/modules/datafile/build.py +9 -2
- {tinybird-0.0.1.dev194.dist-info → tinybird-0.0.1.dev196.dist-info}/METADATA +1 -1
- {tinybird-0.0.1.dev194.dist-info → tinybird-0.0.1.dev196.dist-info}/RECORD +8 -8
- {tinybird-0.0.1.dev194.dist-info → tinybird-0.0.1.dev196.dist-info}/WHEEL +0 -0
- {tinybird-0.0.1.dev194.dist-info → tinybird-0.0.1.dev196.dist-info}/entry_points.txt +0 -0
- {tinybird-0.0.1.dev194.dist-info → tinybird-0.0.1.dev196.dist-info}/top_level.txt +0 -0
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__ = '0.0.1.
|
|
8
|
-
__revision__ = '
|
|
7
|
+
__version__ = '0.0.1.dev196'
|
|
8
|
+
__revision__ = 'a82d1e4'
|
tinybird/tb/modules/cli.py
CHANGED
|
@@ -220,7 +220,12 @@ async def sql(
|
|
|
220
220
|
req_format = "CSVWithNames" if output == "csv" else "JSON"
|
|
221
221
|
res = None
|
|
222
222
|
try:
|
|
223
|
+
if not query and not sys.stdin.isatty(): # Check if there's piped input
|
|
224
|
+
query = sys.stdin.read().strip()
|
|
225
|
+
|
|
223
226
|
if query:
|
|
227
|
+
if query.endswith(";"):
|
|
228
|
+
query = query[:-1].strip()
|
|
224
229
|
q = query.lower().strip()
|
|
225
230
|
if q.startswith("insert"):
|
|
226
231
|
click.echo(FeedbackManager.info_append_data())
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import datetime
|
|
2
1
|
import os
|
|
3
2
|
import os.path
|
|
4
3
|
import re
|
|
5
4
|
import urllib
|
|
6
5
|
from copy import deepcopy
|
|
7
6
|
from dataclasses import dataclass
|
|
7
|
+
from datetime import datetime, timezone
|
|
8
8
|
from pathlib import Path
|
|
9
9
|
from typing import Any, Dict, Iterable, List, Optional, Set, Tuple, Union
|
|
10
10
|
|
|
@@ -911,7 +911,14 @@ async def process_file(
|
|
|
911
911
|
|
|
912
912
|
if import_from_timestamp := params.get("import_from_timestamp", None):
|
|
913
913
|
try:
|
|
914
|
-
|
|
914
|
+
dt = datetime.fromisoformat(import_from_timestamp)
|
|
915
|
+
if dt.tzinfo is None or dt.tzinfo != timezone.utc:
|
|
916
|
+
# If the datetime does not have an embedded timezone info
|
|
917
|
+
# or differs from UTC, user should change it.
|
|
918
|
+
raise click.ClickException(
|
|
919
|
+
FeedbackManager.error_invalid_import_from_timestamp(datasource=datasource["name"])
|
|
920
|
+
)
|
|
921
|
+
dt.isoformat()
|
|
915
922
|
except ValueError:
|
|
916
923
|
raise click.ClickException(
|
|
917
924
|
FeedbackManager.error_invalid_import_from_timestamp(datasource=datasource["name"])
|
|
@@ -12,14 +12,14 @@ 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=X4tE9OrfaUy6kO9cqVEzyI9cDcmOF3IAssRRzsTsfEQ,40781
|
|
15
|
-
tinybird/tb/__cli__.py,sha256=
|
|
15
|
+
tinybird/tb/__cli__.py,sha256=H7LfCM1KtKNmXa0W6o0q-xuclvv2H-7J6lJps_XQH5Q,247
|
|
16
16
|
tinybird/tb/check_pypi.py,sha256=rW4QmDRbtgKdUUwJCnBkVjmTjZSZGN-XgZhx7vMkC0w,1009
|
|
17
17
|
tinybird/tb/cli.py,sha256=u3eGOhX0MHkuT6tiwaZ0_3twqLmqKXDAOxF7yV_Nn9Q,1075
|
|
18
18
|
tinybird/tb/client.py,sha256=CO-dQw8h28X6T6IO-Z79yPBKaJQT1Rwya5b6gexvw58,56491
|
|
19
19
|
tinybird/tb/config.py,sha256=jT9xndpeCY_g0HdB5qE2EquC0TFRRnkPnQFWZWd04jo,3998
|
|
20
20
|
tinybird/tb/modules/build.py,sha256=Deuq1Qk7c5Uapz92Vn9Bp7CrjDylRWER5hBvKGS3QxE,19370
|
|
21
21
|
tinybird/tb/modules/cicd.py,sha256=Njb6eZOHHbUkoJJx6KoixO9PsfA_T-3Ybkya9-50Ca8,7328
|
|
22
|
-
tinybird/tb/modules/cli.py,sha256=
|
|
22
|
+
tinybird/tb/modules/cli.py,sha256=qmD1tNoPXxpDuTD_Vu4YIR9egc3m1eS0NIhaQzacOYo,15605
|
|
23
23
|
tinybird/tb/modules/common.py,sha256=2NRDRll0czmYjwLh3qv3DYL9aP8XgRkRAv5S3meCGfM,84062
|
|
24
24
|
tinybird/tb/modules/config.py,sha256=ziqW_t_mRVvWOd85VoB4vKyvgMkEfpXDf9H4v38p2xc,11422
|
|
25
25
|
tinybird/tb/modules/connection.py,sha256=z1xWP2gtjKEbjc4ZF1aD7QUgl8V--wf2IRNy-4sRFm8,9779
|
|
@@ -56,7 +56,7 @@ tinybird/tb/modules/token.py,sha256=2fmKwu10_M0pqs6YmJVeILR9ZQB0ejRAET86agASbKM,
|
|
|
56
56
|
tinybird/tb/modules/watch.py,sha256=H1FieLTVGRqmZ0hR0vELbQJ9l0CThrFCgGCta-MPuAY,8883
|
|
57
57
|
tinybird/tb/modules/workspace.py,sha256=WDi3Vu9t60b4Ht5vbPsakUErFmsECtFRcfXb1l300xc,11057
|
|
58
58
|
tinybird/tb/modules/workspace_members.py,sha256=RYLpyPM1ECCasHRg3uvpckzXplX0_KgNFsSPZn_i6qk,8744
|
|
59
|
-
tinybird/tb/modules/datafile/build.py,sha256=
|
|
59
|
+
tinybird/tb/modules/datafile/build.py,sha256=MTzX8gWlxHov9C8c1PduyDDsp1dxxWSl26mCVyTvJPg,51395
|
|
60
60
|
tinybird/tb/modules/datafile/build_common.py,sha256=LU24kAQmxDJIyoIapDaYG-SU3P4FrMG9UBf8m9PgVSI,4565
|
|
61
61
|
tinybird/tb/modules/datafile/build_datasource.py,sha256=y4WVe_d2h9zqs7jAzPsUOOCqBaMAvmRQX5oHPJfTV4Y,17382
|
|
62
62
|
tinybird/tb/modules/datafile/build_pipe.py,sha256=6Cwjf3BKEF3-oQ9PipsQfK-Z43nSwtA4qJAUoysI7Uc,11385
|
|
@@ -80,8 +80,8 @@ tinybird/tb_cli_modules/config.py,sha256=IsgdtFRnUrkY8-Zo32lmk6O7u3bHie1QCxLwgp4
|
|
|
80
80
|
tinybird/tb_cli_modules/exceptions.py,sha256=pmucP4kTF4irIt7dXiG-FcnI-o3mvDusPmch1L8RCWk,3367
|
|
81
81
|
tinybird/tb_cli_modules/regions.py,sha256=QjsL5H6Kg-qr0aYVLrvb1STeJ5Sx_sjvbOYO0LrEGMk,166
|
|
82
82
|
tinybird/tb_cli_modules/telemetry.py,sha256=Hh2Io8ZPROSunbOLuMvuIFU4TqwWPmQTqal4WS09K1A,10449
|
|
83
|
-
tinybird-0.0.1.
|
|
84
|
-
tinybird-0.0.1.
|
|
85
|
-
tinybird-0.0.1.
|
|
86
|
-
tinybird-0.0.1.
|
|
87
|
-
tinybird-0.0.1.
|
|
83
|
+
tinybird-0.0.1.dev196.dist-info/METADATA,sha256=dG1B-RS4qyhw1zRQtJMMqwPpvLlfwei4bKmBpuzQvAc,1608
|
|
84
|
+
tinybird-0.0.1.dev196.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
85
|
+
tinybird-0.0.1.dev196.dist-info/entry_points.txt,sha256=LwdHU6TfKx4Qs7BqqtaczEZbImgU7Abe9Lp920zb_fo,43
|
|
86
|
+
tinybird-0.0.1.dev196.dist-info/top_level.txt,sha256=VqqqEmkAy7UNaD8-V51FCoMMWXjLUlR0IstvK7tJYVY,54
|
|
87
|
+
tinybird-0.0.1.dev196.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|