tinybird 0.0.1.dev148__tar.gz → 0.0.1.dev149__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.
Potentially problematic release.
This version of tinybird might be problematic. Click here for more details.
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/PKG-INFO +1 -1
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/prompts.py +38 -14
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb/__cli__.py +2 -2
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb/modules/create.py +13 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb/modules/datafile/common.py +9 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird.egg-info/PKG-INFO +1 -1
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/setup.cfg +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/__cli__.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/ch_utils/constants.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/ch_utils/engine.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/check_pypi.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/client.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/config.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/connectors.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/context.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/datafile.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/datatypes.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/feedback_manager.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/git_settings.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/sql.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/sql_template.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/sql_template_fmt.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/sql_toolset.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/syncasync.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb/check_pypi.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb/cli.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb/client.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb/config.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb/modules/auth.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb/modules/build.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb/modules/cicd.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb/modules/cli.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb/modules/common.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb/modules/config.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb/modules/connection.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb/modules/copy.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb/modules/datafile/build.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb/modules/datafile/build_common.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb/modules/datafile/build_datasource.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb/modules/datafile/build_pipe.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb/modules/datafile/diff.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb/modules/datafile/exceptions.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb/modules/datafile/fixture.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb/modules/datafile/format_common.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb/modules/datafile/format_datasource.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb/modules/datafile/format_pipe.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb/modules/datafile/parse_datasource.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb/modules/datafile/parse_pipe.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb/modules/datafile/pipe_checker.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb/modules/datafile/playground.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb/modules/datafile/pull.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb/modules/datasource.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb/modules/deployment.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb/modules/deprecations.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb/modules/endpoint.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb/modules/exceptions.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb/modules/feedback_manager.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb/modules/infra.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb/modules/job.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb/modules/llm.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb/modules/llm_utils.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb/modules/local.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb/modules/local_common.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb/modules/login.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb/modules/logout.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb/modules/materialization.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb/modules/mock.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb/modules/open.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb/modules/pipe.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb/modules/project.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb/modules/regions.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb/modules/secret.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb/modules/shell.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb/modules/table.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb/modules/telemetry.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb/modules/test.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb/modules/tinyunit/tinyunit.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb/modules/tinyunit/tinyunit_lib.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb/modules/token.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb/modules/watch.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb/modules/workspace.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb/modules/workspace_members.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb_cli.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb_cli_modules/auth.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb_cli_modules/branch.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb_cli_modules/cicd.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb_cli_modules/cli.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb_cli_modules/common.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb_cli_modules/config.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb_cli_modules/connection.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb_cli_modules/datasource.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb_cli_modules/exceptions.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb_cli_modules/fmt.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb_cli_modules/job.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb_cli_modules/pipe.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb_cli_modules/regions.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb_cli_modules/tag.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb_cli_modules/telemetry.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb_cli_modules/test.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb_cli_modules/tinyunit/tinyunit.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb_cli_modules/tinyunit/tinyunit_lib.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb_cli_modules/workspace.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb_cli_modules/workspace_members.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tornado_template.py +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird.egg-info/SOURCES.txt +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird.egg-info/dependency_links.txt +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird.egg-info/entry_points.txt +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird.egg-info/requires.txt +0 -0
- {tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird.egg-info/top_level.txt +0 -0
|
@@ -401,7 +401,7 @@ Follow the instructions and generate the following response with no additional t
|
|
|
401
401
|
def create_prompt(existing_resources: str, feedback: str = "", history: str = "") -> str:
|
|
402
402
|
feedback_history = ""
|
|
403
403
|
if feedback and history:
|
|
404
|
-
feedback_history = f"""In case the <feedback> and <history> tags are present and not empty,
|
|
404
|
+
feedback_history = f"""In case the <feedback> and <history> tags are present and not empty,
|
|
405
405
|
it means there was a previous attempt to generate the resources and the user provided feedback and history about previous responses.
|
|
406
406
|
Use the following feedback and history to regenerate the response:
|
|
407
407
|
Feedback to improve the response:
|
|
@@ -420,7 +420,9 @@ You are a Tinybird expert. You will be given a prompt to generate new or update
|
|
|
420
420
|
{copy_pipe_instructions}
|
|
421
421
|
{materialized_pipe_instructions}
|
|
422
422
|
{connection_instructions}
|
|
423
|
-
{
|
|
423
|
+
{kafka_connection_example}
|
|
424
|
+
{gcs_connection_example}
|
|
425
|
+
{s3_connection_example}
|
|
424
426
|
|
|
425
427
|
{feedback_history}
|
|
426
428
|
|
|
@@ -443,14 +445,16 @@ Use the following format to generate the response and do not wrap it in any othe
|
|
|
443
445
|
copy_pipe_instructions=copy_pipe_instructions,
|
|
444
446
|
materialized_pipe_instructions=materialized_pipe_instructions,
|
|
445
447
|
connection_instructions=connection_instructions,
|
|
446
|
-
|
|
448
|
+
kafka_connection_example=kafka_connection_example,
|
|
449
|
+
gcs_connection_example=gcs_connection_example,
|
|
450
|
+
s3_connection_example=s3_connection_example,
|
|
447
451
|
feedback_history=feedback_history,
|
|
448
452
|
)
|
|
449
453
|
|
|
450
454
|
|
|
451
455
|
def mock_prompt(rows: int, feedback: str = "") -> str:
|
|
452
456
|
if feedback:
|
|
453
|
-
feedback = f"""In case the <feedback> tag is present and not empty,
|
|
457
|
+
feedback = f"""In case the <feedback> tag is present and not empty,
|
|
454
458
|
it means there was a previous attempt to generate the resources and the system provided feedback about the previous response.
|
|
455
459
|
Use the following feedback to regenerate the response:
|
|
456
460
|
<feedback>{feedback}</feedback>
|
|
@@ -515,7 +519,7 @@ SCHEMA >
|
|
|
515
519
|
`customer_id` UInt64 `json:$.customer_id`,
|
|
516
520
|
`order_date` DateTime `json:$.order_date`,
|
|
517
521
|
`total_amount` Float64 `json:$.total_amount`,
|
|
518
|
-
`items` Array(String) `json:$.items[:]` // This is an array field
|
|
522
|
+
`items` Array(String) `json:$.items[:]` // This is an array field
|
|
519
523
|
|
|
520
524
|
### Desired final output of the query:
|
|
521
525
|
{{
|
|
@@ -680,19 +684,34 @@ connection_instructions = """
|
|
|
680
684
|
- Content cannot be empty.
|
|
681
685
|
- The connection names must be unique.
|
|
682
686
|
- No indentation is allowed for property names
|
|
683
|
-
- We
|
|
687
|
+
- We support kafka, gcs and s3 connections for now
|
|
684
688
|
</connection_file_instructions>
|
|
685
689
|
"""
|
|
686
690
|
|
|
687
|
-
|
|
688
|
-
<
|
|
691
|
+
kafka_connection_example = """
|
|
692
|
+
<kafka_connection_content>
|
|
689
693
|
TYPE kafka
|
|
690
694
|
KAFKA_BOOTSTRAP_SERVERS {{ tb_secret("PRODUCTION_KAFKA_SERVERS", "localhost:9092") }}
|
|
691
695
|
KAFKA_SECURITY_PROTOCOL SASL_SSL
|
|
692
696
|
KAFKA_SASL_MECHANISM PLAIN
|
|
693
697
|
KAFKA_KEY {{ tb_secret("PRODUCTION_KAFKA_USERNAME", "") }}
|
|
694
698
|
KAFKA_SECRET {{ tb_secret("PRODUCTION_KAFKA_PASSWORD", "") }}
|
|
695
|
-
</
|
|
699
|
+
</kafka_connection_content>
|
|
700
|
+
"""
|
|
701
|
+
|
|
702
|
+
gcs_connection_example = """
|
|
703
|
+
<gcs_connection_content>
|
|
704
|
+
TYPE gcs
|
|
705
|
+
GCS_SERVICE_ACCOUNT_CREDENTIALS_JSON {{ tb_secret("PRODUCTION_GCS_SERVICE_ACCOUNT_CREDENTIALS_JSON", "") }}
|
|
706
|
+
</gcs_connection_content>
|
|
707
|
+
"""
|
|
708
|
+
|
|
709
|
+
s3_connection_example = """
|
|
710
|
+
<s3_connection_content>
|
|
711
|
+
TYPE s3
|
|
712
|
+
S3_REGION {{ tb_secret("PRODUCTION_S3_REGION", "") }}
|
|
713
|
+
S3_ARN {{ tb_secret("PRODUCTION_S3_ARN", "") }}
|
|
714
|
+
</s3_connection_content>
|
|
696
715
|
"""
|
|
697
716
|
|
|
698
717
|
datasource_instructions = """
|
|
@@ -703,6 +722,7 @@ datasource_instructions = """
|
|
|
703
722
|
- Use MergeTree engine by default.
|
|
704
723
|
- Use AggregatingMergeTree engine when the datasource is the target of a materialized pipe.
|
|
705
724
|
- Use always json paths to define the schema. Example: `user_id` String `json:$.user_id`,
|
|
725
|
+
- If the datasource is using an S3 or GCS connection, they need to set IMPORT_CONNECTION_NAME, IMPORT_BUCKET_URI and IMPORT_SCHEDULE (GCS @on-demand only, S3 supports @auto too)
|
|
706
726
|
</datasource_file_instructions>
|
|
707
727
|
"""
|
|
708
728
|
|
|
@@ -775,7 +795,7 @@ sql_instructions = """
|
|
|
775
795
|
{{%if not defined(end_date)%}}
|
|
776
796
|
AND now()
|
|
777
797
|
{{%else%}}
|
|
778
|
-
AND {{{{DateTime(end_date)}}}}
|
|
798
|
+
AND {{{{DateTime(end_date)}}}}
|
|
779
799
|
{{%end%}}
|
|
780
800
|
</valid_condition_without_now>
|
|
781
801
|
- Parameters must not be quoted.
|
|
@@ -862,7 +882,9 @@ Follow these instructions when creating or updating .pipe files:
|
|
|
862
882
|
{copy_pipe_instructions}
|
|
863
883
|
{materialized_pipe_instructions}
|
|
864
884
|
{connection_instructions}
|
|
865
|
-
{
|
|
885
|
+
{kafka_connection_example}
|
|
886
|
+
{gcs_connection_example}
|
|
887
|
+
{s3_connection_example}
|
|
866
888
|
</pipe_file_instructions>
|
|
867
889
|
<test_file_instructions>
|
|
868
890
|
Follow these instructions when creating or updating .yaml files for tests:
|
|
@@ -884,7 +906,9 @@ Follow these instructions when evolving a datasource schema:
|
|
|
884
906
|
test_instructions=test_instructions,
|
|
885
907
|
deployment_instructions=deployment_instructions,
|
|
886
908
|
connection_instructions=connection_instructions,
|
|
887
|
-
|
|
909
|
+
kafka_connection_example=kafka_connection_example,
|
|
910
|
+
gcs_connection_example=gcs_connection_example,
|
|
911
|
+
s3_connection_example=s3_connection_example,
|
|
888
912
|
)
|
|
889
913
|
|
|
890
914
|
|
|
@@ -950,7 +974,7 @@ SCHEMA >
|
|
|
950
974
|
`payload` String `json:$.payload`
|
|
951
975
|
|
|
952
976
|
FORWARD_QUERY >
|
|
953
|
-
select timestamp, toUUID(session_id) as session_id, action, version, payload
|
|
977
|
+
select timestamp, toUUID(session_id) as session_id, action, version, payload
|
|
954
978
|
</forward_query_example>
|
|
955
979
|
</deployment_instruction>
|
|
956
980
|
"""
|
|
@@ -968,7 +992,7 @@ Current README.md file:
|
|
|
968
992
|
- If it is not present in the current readme, generate a new ## Tinybird section with the following content:
|
|
969
993
|
- ### Overview section:
|
|
970
994
|
- Explaining the purpose of the project.
|
|
971
|
-
- ### Data sources section:
|
|
995
|
+
- ### Data sources section:
|
|
972
996
|
- Explaining the purpose of each datasource.
|
|
973
997
|
- Add a snippet of how to ingest data into each datasource like the following (where the payload example matches the datasource schema respecting non-nullable types):
|
|
974
998
|
curl -X POST "{host}/v0/events?name=events" \
|
|
@@ -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.
|
|
8
|
-
__revision__ = '
|
|
7
|
+
__version__ = '0.0.1.dev149'
|
|
8
|
+
__revision__ = '2838b1f'
|
|
@@ -240,6 +240,11 @@ TYPE ENDPOINT
|
|
|
240
240
|
pipes_paths = [
|
|
241
241
|
Path(folder) / "endpoints" / f for f in os.listdir(Path(folder) / "endpoints") if f.endswith(".pipe")
|
|
242
242
|
]
|
|
243
|
+
connections_paths = [
|
|
244
|
+
Path(folder) / "connections" / f
|
|
245
|
+
for f in os.listdir(Path(folder) / "connections")
|
|
246
|
+
if f.endswith(".connection")
|
|
247
|
+
]
|
|
243
248
|
resources_xml = "\n".join(
|
|
244
249
|
[
|
|
245
250
|
f"<resource><type>{resource_type}</type><name>{resource_name}</name><content>{resource_content}</content></resource>"
|
|
@@ -254,6 +259,14 @@ TYPE ENDPOINT
|
|
|
254
259
|
)
|
|
255
260
|
for pipe in pipes_paths
|
|
256
261
|
]
|
|
262
|
+
+ [
|
|
263
|
+
(
|
|
264
|
+
"connection",
|
|
265
|
+
conn.stem,
|
|
266
|
+
conn.read_text(),
|
|
267
|
+
)
|
|
268
|
+
for conn in connections_paths
|
|
269
|
+
]
|
|
257
270
|
]
|
|
258
271
|
)
|
|
259
272
|
llm = LLM(user_token=user_token, host=tb_client.host)
|
|
@@ -846,6 +846,15 @@ def _parse_table_structure(schema: str) -> List[Dict[str, Any]]:
|
|
|
846
846
|
lineno=line,
|
|
847
847
|
pos=pos,
|
|
848
848
|
)
|
|
849
|
+
if detected_type in ("Int", "UInt"):
|
|
850
|
+
t = detected_type
|
|
851
|
+
raise SchemaSyntaxError(
|
|
852
|
+
message=f"Precision is mandatory for {t} types",
|
|
853
|
+
hint=f"Hint: use one of {t}8, {t}16, {t}32, {t}64, {t}128, {t}256",
|
|
854
|
+
lineno=line,
|
|
855
|
+
pos=pos - len(t),
|
|
856
|
+
)
|
|
857
|
+
|
|
849
858
|
try:
|
|
850
859
|
# Imported in the body to be compatible with the CLI
|
|
851
860
|
from chtoolset.query import check_compatible_types
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb/modules/datafile/build_common.py
RENAMED
|
File without changes
|
{tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb/modules/datafile/build_datasource.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb/modules/datafile/format_common.py
RENAMED
|
File without changes
|
{tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb/modules/datafile/format_datasource.py
RENAMED
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb/modules/datafile/parse_datasource.py
RENAMED
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb/modules/datafile/pipe_checker.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb/modules/tinyunit/tinyunit_lib.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb_cli_modules/tinyunit/tinyunit.py
RENAMED
|
File without changes
|
{tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb_cli_modules/tinyunit/tinyunit_lib.py
RENAMED
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev148 → tinybird-0.0.1.dev149}/tinybird/tb_cli_modules/workspace_members.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|