tinybird 0.0.1.dev200__tar.gz → 0.0.1.dev313__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.
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/PKG-INFO +10 -5
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/ch_utils/constants.py +22 -0
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/ch_utils/engine.py +3 -2
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/client.py +4 -1
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/config.py +0 -6
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/connectors.py +1 -7
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/context.py +3 -3
- {tinybird-0.0.1.dev200/tinybird/tb/modules → tinybird-0.0.1.dev313/tinybird}/datafile/common.py +352 -49
- tinybird-0.0.1.dev313/tinybird/datafile/parse_connection.py +60 -0
- {tinybird-0.0.1.dev200/tinybird/tb/modules → tinybird-0.0.1.dev313/tinybird}/datafile/parse_datasource.py +3 -3
- {tinybird-0.0.1.dev200/tinybird/tb/modules → tinybird-0.0.1.dev313/tinybird}/datafile/parse_pipe.py +14 -7
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/feedback_manager.py +6 -0
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/prompts.py +204 -52
- tinybird-0.0.1.dev313/tinybird/service_datasources.py +1085 -0
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/sql.py +42 -24
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/sql_template.py +56 -12
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/sql_toolset.py +6 -2
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/tb/__cli__.py +2 -2
- tinybird-0.0.1.dev313/tinybird/tb/check_pypi.py +19 -0
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/tb/cli.py +3 -6
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/tb/client.py +329 -359
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/tb/config.py +28 -5
- tinybird-0.0.1.dev313/tinybird/tb/modules/agent/__init__.py +3 -0
- tinybird-0.0.1.dev313/tinybird/tb/modules/agent/agent.py +916 -0
- tinybird-0.0.1.dev313/tinybird/tb/modules/agent/animations.py +105 -0
- tinybird-0.0.1.dev313/tinybird/tb/modules/agent/banner.py +87 -0
- tinybird-0.0.1.dev313/tinybird/tb/modules/agent/command_agent.py +75 -0
- tinybird-0.0.1.dev313/tinybird/tb/modules/agent/compactor.py +311 -0
- tinybird-0.0.1.dev313/tinybird/tb/modules/agent/explore_agent.py +101 -0
- tinybird-0.0.1.dev313/tinybird/tb/modules/agent/file_agent.py +64 -0
- tinybird-0.0.1.dev313/tinybird/tb/modules/agent/memory.py +113 -0
- tinybird-0.0.1.dev313/tinybird/tb/modules/agent/mock_agent.py +210 -0
- tinybird-0.0.1.dev313/tinybird/tb/modules/agent/models.py +65 -0
- tinybird-0.0.1.dev313/tinybird/tb/modules/agent/prompts.py +1113 -0
- tinybird-0.0.1.dev313/tinybird/tb/modules/agent/testing_agent.py +72 -0
- tinybird-0.0.1.dev313/tinybird/tb/modules/agent/tools/__init__.py +0 -0
- tinybird-0.0.1.dev313/tinybird/tb/modules/agent/tools/analyze.py +91 -0
- tinybird-0.0.1.dev313/tinybird/tb/modules/agent/tools/append.py +176 -0
- tinybird-0.0.1.dev313/tinybird/tb/modules/agent/tools/build.py +21 -0
- tinybird-0.0.1.dev313/tinybird/tb/modules/agent/tools/datafile.py +273 -0
- tinybird-0.0.1.dev313/tinybird/tb/modules/agent/tools/deploy.py +50 -0
- tinybird-0.0.1.dev313/tinybird/tb/modules/agent/tools/deploy_check.py +29 -0
- tinybird-0.0.1.dev313/tinybird/tb/modules/agent/tools/diff_resource.py +49 -0
- tinybird-0.0.1.dev313/tinybird/tb/modules/agent/tools/execute_query.py +215 -0
- tinybird-0.0.1.dev313/tinybird/tb/modules/agent/tools/file.py +82 -0
- tinybird-0.0.1.dev313/tinybird/tb/modules/agent/tools/get_endpoint_stats.py +63 -0
- tinybird-0.0.1.dev313/tinybird/tb/modules/agent/tools/get_openapi_definition.py +66 -0
- tinybird-0.0.1.dev313/tinybird/tb/modules/agent/tools/mock.py +136 -0
- tinybird-0.0.1.dev313/tinybird/tb/modules/agent/tools/plan.py +86 -0
- tinybird-0.0.1.dev313/tinybird/tb/modules/agent/tools/request_endpoint.py +93 -0
- tinybird-0.0.1.dev313/tinybird/tb/modules/agent/tools/run_command.py +55 -0
- tinybird-0.0.1.dev313/tinybird/tb/modules/agent/tools/secret.py +113 -0
- tinybird-0.0.1.dev313/tinybird/tb/modules/agent/tools/test.py +256 -0
- tinybird-0.0.1.dev313/tinybird/tb/modules/agent/utils.py +858 -0
- tinybird-0.0.1.dev313/tinybird/tb/modules/build.py +240 -0
- tinybird-0.0.1.dev313/tinybird/tb/modules/build_common.py +506 -0
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/tb/modules/cicd.py +3 -3
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/tb/modules/cli.py +231 -62
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/tb/modules/common.py +333 -199
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/tb/modules/config.py +6 -5
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/tb/modules/connection.py +107 -117
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/tb/modules/copy.py +8 -51
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/tb/modules/create.py +147 -173
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/tb/modules/datafile/build.py +78 -89
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/tb/modules/datafile/build_common.py +9 -9
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/tb/modules/datafile/build_datasource.py +45 -49
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/tb/modules/datafile/build_pipe.py +12 -14
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/tb/modules/datafile/diff.py +14 -14
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/tb/modules/datafile/format_common.py +1 -1
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/tb/modules/datafile/format_datasource.py +7 -7
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/tb/modules/datafile/format_pipe.py +11 -11
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/tb/modules/datafile/pipe_checker.py +1 -1
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/tb/modules/datafile/playground.py +114 -123
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/tb/modules/datafile/pull.py +64 -54
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/tb/modules/datasource.py +440 -276
- tinybird-0.0.1.dev313/tinybird/tb/modules/deployment.py +490 -0
- tinybird-0.0.1.dev200/tinybird/tb/modules/deployment.py → tinybird-0.0.1.dev313/tinybird/tb/modules/deployment_common.py +115 -374
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/tb/modules/dev_server.py +17 -3
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/tb/modules/endpoint.py +15 -20
- tinybird-0.0.1.dev313/tinybird/tb/modules/environment.py +152 -0
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/tb/modules/exceptions.py +21 -0
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/tb/modules/feedback_manager.py +32 -9
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/tb/modules/info.py +62 -25
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/tb/modules/infra.py +47 -53
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/tb/modules/job.py +7 -10
- tinybird-0.0.1.dev313/tinybird/tb/modules/llm.py +59 -0
- tinybird-0.0.1.dev313/tinybird/tb/modules/local.py +303 -0
- tinybird-0.0.1.dev313/tinybird/tb/modules/local_common.py +791 -0
- tinybird-0.0.1.dev313/tinybird/tb/modules/local_logs.py +196 -0
- tinybird-0.0.1.dev313/tinybird/tb/modules/login.py +57 -0
- tinybird-0.0.1.dev313/tinybird/tb/modules/login_common.py +321 -0
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/tb/modules/materialization.py +17 -11
- tinybird-0.0.1.dev313/tinybird/tb/modules/mock.py +41 -0
- tinybird-0.0.1.dev313/tinybird/tb/modules/mock_common.py +17 -0
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/tb/modules/open.py +1 -3
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/tb/modules/pipe.py +3 -5
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/tb/modules/project.py +68 -4
- tinybird-0.0.1.dev313/tinybird/tb/modules/secret.py +106 -0
- tinybird-0.0.1.dev313/tinybird/tb/modules/secret_common.py +52 -0
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/tb/modules/shell.py +8 -21
- tinybird-0.0.1.dev313/tinybird/tb/modules/sink.py +103 -0
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/tb/modules/telemetry.py +6 -1
- tinybird-0.0.1.dev313/tinybird/tb/modules/test.py +65 -0
- tinybird-0.0.1.dev200/tinybird/tb/modules/test.py → tinybird-0.0.1.dev313/tinybird/tb/modules/test_common.py +86 -147
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/tb/modules/tinyunit/tinyunit.py +3 -17
- {tinybird-0.0.1.dev200/tinybird/tb_cli_modules → tinybird-0.0.1.dev313/tinybird/tb/modules}/tinyunit/tinyunit_lib.py +0 -6
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/tb/modules/token.py +55 -50
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/tb/modules/watch.py +20 -13
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/tb/modules/workspace.py +42 -48
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/tb/modules/workspace_members.py +16 -23
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/tb_cli_modules/branch.py +1 -1
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/tb_cli_modules/cli.py +20 -3
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/tb_cli_modules/common.py +2 -2
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/tb_cli_modules/datasource.py +1 -1
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/tb_cli_modules/fmt.py +5 -3
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/tb_cli_modules/pipe.py +16 -2
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/tb_cli_modules/tinyunit/tinyunit.py +0 -14
- {tinybird-0.0.1.dev200/tinybird/tb/modules → tinybird-0.0.1.dev313/tinybird/tb_cli_modules}/tinyunit/tinyunit_lib.py +0 -6
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/tb_cli_modules/workspace.py +1 -1
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/tornado_template.py +6 -7
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird.egg-info/PKG-INFO +10 -5
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird.egg-info/SOURCES.txt +47 -5
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird.egg-info/requires.txt +9 -4
- tinybird-0.0.1.dev200/tinybird/datafile.py +0 -5648
- tinybird-0.0.1.dev200/tinybird/tb/check_pypi.py +0 -26
- tinybird-0.0.1.dev200/tinybird/tb/modules/build.py +0 -500
- tinybird-0.0.1.dev200/tinybird/tb/modules/llm.py +0 -42
- tinybird-0.0.1.dev200/tinybird/tb/modules/local.py +0 -402
- tinybird-0.0.1.dev200/tinybird/tb/modules/local_common.py +0 -436
- tinybird-0.0.1.dev200/tinybird/tb/modules/login.py +0 -219
- tinybird-0.0.1.dev200/tinybird/tb/modules/mock.py +0 -155
- tinybird-0.0.1.dev200/tinybird/tb/modules/secret.py +0 -139
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/setup.cfg +0 -0
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/__cli__.py +0 -0
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/check_pypi.py +0 -0
- {tinybird-0.0.1.dev200/tinybird/tb/modules → tinybird-0.0.1.dev313/tinybird}/datafile/exceptions.py +0 -0
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/datatypes.py +0 -0
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/git_settings.py +0 -0
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/sql_template_fmt.py +0 -0
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/syncasync.py +0 -0
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/tb/modules/datafile/fixture.py +0 -0
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/tb/modules/deprecations.py +0 -0
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/tb/modules/llm_utils.py +0 -0
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/tb/modules/logout.py +0 -0
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/tb/modules/regions.py +0 -0
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/tb/modules/table.py +0 -0
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/tb_cli.py +0 -0
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/tb_cli_modules/auth.py +0 -0
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/tb_cli_modules/cicd.py +0 -0
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/tb_cli_modules/config.py +0 -0
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/tb_cli_modules/connection.py +0 -0
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/tb_cli_modules/exceptions.py +0 -0
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/tb_cli_modules/job.py +0 -0
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/tb_cli_modules/regions.py +0 -0
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/tb_cli_modules/tag.py +0 -0
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/tb_cli_modules/telemetry.py +0 -0
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/tb_cli_modules/test.py +0 -0
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird/tb_cli_modules/workspace_members.py +0 -0
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird.egg-info/dependency_links.txt +0 -0
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird.egg-info/entry_points.txt +0 -0
- {tinybird-0.0.1.dev200 → tinybird-0.0.1.dev313}/tinybird.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: tinybird
|
|
3
|
-
Version: 0.0.1.
|
|
3
|
+
Version: 0.0.1.dev313
|
|
4
4
|
Summary: Tinybird Command Line Tool
|
|
5
5
|
Home-page: https://www.tinybird.co/docs/forward/commands
|
|
6
6
|
Author: Tinybird
|
|
@@ -8,20 +8,24 @@ Author-email: support@tinybird.co
|
|
|
8
8
|
Requires-Python: >=3.9, <3.14
|
|
9
9
|
Description-Content-Type: text/x-rst
|
|
10
10
|
Requires-Dist: aiofiles==24.1.0
|
|
11
|
-
Requires-Dist: anthropic==0.
|
|
11
|
+
Requires-Dist: anthropic==0.55.0
|
|
12
12
|
Requires-Dist: boto3
|
|
13
13
|
Requires-Dist: click<8.2,>=8.1.6
|
|
14
14
|
Requires-Dist: clickhouse-toolset==0.34.dev0
|
|
15
15
|
Requires-Dist: colorama==0.4.6
|
|
16
|
-
Requires-Dist: confluent-kafka==2.8.
|
|
16
|
+
Requires-Dist: confluent-kafka==2.8.2
|
|
17
17
|
Requires-Dist: cryptography~=41.0.0
|
|
18
18
|
Requires-Dist: croniter==1.3.15
|
|
19
19
|
Requires-Dist: docker==7.1.0
|
|
20
20
|
Requires-Dist: GitPython~=3.1.32
|
|
21
21
|
Requires-Dist: humanfriendly~=8.2
|
|
22
|
+
Requires-Dist: plotext==5.3.2
|
|
22
23
|
Requires-Dist: prompt_toolkit==3.0.48
|
|
23
|
-
Requires-Dist:
|
|
24
|
-
Requires-Dist:
|
|
24
|
+
Requires-Dist: logfire-api==4.2.0
|
|
25
|
+
Requires-Dist: pydantic~=2.11.7
|
|
26
|
+
Requires-Dist: pydantic-ai-slim[anthropic]~=0.5.0
|
|
27
|
+
Requires-Dist: pydantic-ai-slim[retries]~=0.5.0
|
|
28
|
+
Requires-Dist: pyperclip==1.9.0
|
|
25
29
|
Requires-Dist: pyyaml<6.1,>=6.0
|
|
26
30
|
Requires-Dist: requests<3,>=2.28.1
|
|
27
31
|
Requires-Dist: shandy-sqlfmt==0.11.1
|
|
@@ -35,6 +39,7 @@ Requires-Dist: packaging<24,>=23.1
|
|
|
35
39
|
Requires-Dist: llm>=0.19
|
|
36
40
|
Requires-Dist: thefuzz==0.22.1
|
|
37
41
|
Requires-Dist: python-dotenv==1.1.0
|
|
42
|
+
Requires-Dist: pyjwt[crypto]==2.9.0
|
|
38
43
|
Dynamic: author
|
|
39
44
|
Dynamic: author-email
|
|
40
45
|
Dynamic: description
|
|
@@ -242,3 +242,25 @@ FORBIDDEN_SQL_KEYWORDS = {
|
|
|
242
242
|
|
|
243
243
|
CH_SETTINGS_JOIN_ALGORITHM_HASH = "hash" # uses 'hash' by default, https://clickhouse.com/docs/en/operations/settings/settings/#settings-join_algorithm
|
|
244
244
|
CH_SETTINGS_JOIN_ALGORITHM_AUTO = "auto,hash"
|
|
245
|
+
|
|
246
|
+
VALID_QUERY_FORMATS = (
|
|
247
|
+
"JSON",
|
|
248
|
+
"CSV",
|
|
249
|
+
"CSVWithNames",
|
|
250
|
+
"TSV",
|
|
251
|
+
"TSVWithNames",
|
|
252
|
+
"PrettyCompact",
|
|
253
|
+
"JSONEachRow",
|
|
254
|
+
"Parquet",
|
|
255
|
+
"JSONStrings",
|
|
256
|
+
"Prometheus",
|
|
257
|
+
"Native",
|
|
258
|
+
"RowBinaryWithNamesAndTypes",
|
|
259
|
+
"TabSeparated",
|
|
260
|
+
"JSONCompactEachRowWithNamesAndTypes",
|
|
261
|
+
"TabSeparatedWithNamesAndTypes",
|
|
262
|
+
"JSONCompactEachRow",
|
|
263
|
+
"JSONCompact",
|
|
264
|
+
"JSONStringsEachRowWithProgress",
|
|
265
|
+
"ODBCDriver2",
|
|
266
|
+
)
|
|
@@ -134,8 +134,9 @@ class TableDetails:
|
|
|
134
134
|
_version = self.details.get("version", None)
|
|
135
135
|
return _version
|
|
136
136
|
|
|
137
|
-
def is_replicated(self):
|
|
138
|
-
|
|
137
|
+
def is_replicated(self) -> bool:
|
|
138
|
+
engine: Optional[str] = self.details.get("engine", None)
|
|
139
|
+
return engine is not None and "Replicated" in engine
|
|
139
140
|
|
|
140
141
|
def is_mergetree_family(self) -> bool:
|
|
141
142
|
return self.engine is not None and "mergetree" in self.engine.lower()
|
|
@@ -552,7 +552,7 @@ class TinyB:
|
|
|
552
552
|
async def analyze_pipe_node(
|
|
553
553
|
self, pipe_name: str, node: Dict[str, Any], dry_run: str = "false", datasource_name: Optional[str] = None
|
|
554
554
|
):
|
|
555
|
-
params = {
|
|
555
|
+
params = {"include_datafile": "true", "dry_run": dry_run, **node.get("params", node)}
|
|
556
556
|
if "mode" in params:
|
|
557
557
|
params.pop("mode")
|
|
558
558
|
node_name = node["params"]["name"] if node.get("params", None) else node["name"]
|
|
@@ -569,6 +569,7 @@ class TinyB:
|
|
|
569
569
|
populate_condition: Optional[str] = None,
|
|
570
570
|
truncate: bool = True,
|
|
571
571
|
unlink_on_populate_error: bool = False,
|
|
572
|
+
on_demand_compute: bool = False,
|
|
572
573
|
):
|
|
573
574
|
params: Dict[str, Any] = {
|
|
574
575
|
"truncate": "true" if truncate else "false",
|
|
@@ -578,6 +579,8 @@ class TinyB:
|
|
|
578
579
|
params.update({"populate_subset": populate_subset})
|
|
579
580
|
if populate_condition:
|
|
580
581
|
params.update({"populate_condition": populate_condition})
|
|
582
|
+
if on_demand_compute:
|
|
583
|
+
params.update({"on_demand_compute": "true"})
|
|
581
584
|
response = await self._req(
|
|
582
585
|
f"/v0/pipes/{pipe_name}/nodes/{node_name}/population?{urlencode(params)}", method="POST"
|
|
583
586
|
)
|
|
@@ -38,13 +38,10 @@ LEGACY_HOSTS = {
|
|
|
38
38
|
"https://api.wadus3.gcp.tinybird.co": "https://app.wadus.tinybird.co/gcp/wadus3",
|
|
39
39
|
"https://api.wadus4.gcp.tinybird.co": "https://app.wadus.tinybird.co/gcp/wadus4",
|
|
40
40
|
"https://api.wadus5.gcp.tinybird.co": "https://app.wadus.tinybird.co/gcp/wadus5",
|
|
41
|
-
"https://api.wadus6.gcp.tinybird.co": "https://app.wadus.tinybird.co/gcp/wadus6",
|
|
42
41
|
"https://api.wadus1.aws.tinybird.co": "https://app.wadus.tinybird.co/aws/wadus1",
|
|
43
42
|
"https://api.wadus2.aws.tinybird.co": "https://app.wadus.tinybird.co/aws/wadus2",
|
|
44
43
|
"https://api.wadus3.aws.tinybird.co": "https://app.wadus.tinybird.co/aws/wadus3",
|
|
45
44
|
"https://api.wadus4.aws.tinybird.co": "https://app.wadus.tinybird.co/aws/wadus4",
|
|
46
|
-
"https://api.wadus5.aws.tinybird.co": "https://app.wadus.tinybird.co/aws/wadus5",
|
|
47
|
-
"https://api.wadus6.aws.tinybird.co": "https://app.wadus.tinybird.co/aws/wadus6",
|
|
48
45
|
"https://ui.tinybird.co": "https://app.tinybird.co/gcp/europe-west3",
|
|
49
46
|
"https://ui.us-east.tinybird.co": "https://app.tinybird.co/gcp/us-east4",
|
|
50
47
|
"https://ui.us-east.aws.tinybird.co": "https://app.tinybird.co/aws/us-east-1",
|
|
@@ -62,13 +59,10 @@ LEGACY_HOSTS = {
|
|
|
62
59
|
"https://ui.wadus3.gcp.tinybird.co": "https://app.wadus.tinybird.co/gcp/wadus3",
|
|
63
60
|
"https://ui.wadus4.gcp.tinybird.co": "https://app.wadus.tinybird.co/gcp/wadus4",
|
|
64
61
|
"https://ui.wadus5.gcp.tinybird.co": "https://app.wadus.tinybird.co/gcp/wadus5",
|
|
65
|
-
"https://ui.wadus6.gcp.tinybird.co": "https://app.wadus.tinybird.co/gcp/wadus6",
|
|
66
62
|
"https://ui.wadus1.aws.tinybird.co": "https://app.wadus.tinybird.co/aws/wadus1",
|
|
67
63
|
"https://ui.wadus2.aws.tinybird.co": "https://app.wadus.tinybird.co/aws/wadus2",
|
|
68
64
|
"https://ui.wadus3.aws.tinybird.co": "https://app.wadus.tinybird.co/aws/wadus3",
|
|
69
65
|
"https://ui.wadus4.aws.tinybird.co": "https://app.wadus.tinybird.co/aws/wadus4",
|
|
70
|
-
"https://ui.wadus5.aws.tinybird.co": "https://app.wadus.tinybird.co/aws/wadus5",
|
|
71
|
-
"https://ui.wadus6.aws.tinybird.co": "https://app.wadus.tinybird.co/aws/wadus6",
|
|
72
66
|
}
|
|
73
67
|
|
|
74
68
|
|
|
@@ -369,13 +369,7 @@ class Snowflake(Connector):
|
|
|
369
369
|
the_type = "String"
|
|
370
370
|
if t.startswith("NUMBER"):
|
|
371
371
|
the_type = "Int32"
|
|
372
|
-
if (
|
|
373
|
-
t.startswith("FLOAT")
|
|
374
|
-
or t.startswith("DOUBLE")
|
|
375
|
-
or t.startswith("REAL")
|
|
376
|
-
or t.startswith("NUMERIC")
|
|
377
|
-
or t.startswith("DECIMAL")
|
|
378
|
-
):
|
|
372
|
+
if t.startswith(("FLOAT", "DOUBLE", "REAL", "NUMERIC", "DECIMAL")):
|
|
379
373
|
the_type = "Float32"
|
|
380
374
|
if t == "DATE":
|
|
381
375
|
the_type = "Date"
|
|
@@ -3,15 +3,15 @@ from typing import TYPE_CHECKING
|
|
|
3
3
|
|
|
4
4
|
# Avoid circular import error
|
|
5
5
|
if TYPE_CHECKING:
|
|
6
|
-
from
|
|
6
|
+
from hfi.hfi_workspace_data import HfiWorkspaceData
|
|
7
|
+
|
|
7
8
|
|
|
8
9
|
workspace_id: ContextVar[str] = ContextVar("workspace_id")
|
|
9
|
-
|
|
10
|
+
hfi_workspace_data: ContextVar["HfiWorkspaceData"] = ContextVar("hfi_workspace_data")
|
|
10
11
|
table_id: ContextVar[str] = ContextVar("table_id")
|
|
11
12
|
hfi_frequency: ContextVar[float] = ContextVar("hfi_frequency")
|
|
12
13
|
hfi_frequency_gatherer: ContextVar[float] = ContextVar("hfi_frequency_gatherer")
|
|
13
14
|
use_gatherer: ContextVar[bool] = ContextVar("use_gatherer")
|
|
14
|
-
allow_gatherer_fallback: ContextVar[bool] = ContextVar("allow_gatherer_fallback")
|
|
15
15
|
gatherer_allow_s3_backup_on_user_errors: ContextVar[bool] = ContextVar("gatherer_allow_s3_backup_on_user_errors")
|
|
16
16
|
disable_template_security_validation: ContextVar[bool] = ContextVar("disable_template_security_validation")
|
|
17
17
|
origin: ContextVar[str] = ContextVar("origin")
|