Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Tinybird - CD Workflow

on:
workflow_dispatch:
push:
branches:
- main

jobs:
push_changes:
uses: tinybirdco/ci/.github/workflows/cd.yml@main
secrets:
admin_token: ${{ secrets.ADMIN_TOKEN }}
tb_host: https://api.tinybird.co
17 changes: 17 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Tinybird - CI Workflow

on:
workflow_dispatch:
pull_request:
branches:
- main
types: [opened, reopened, labeled, unlabeled, synchronize]

concurrency: ${{ github.workflow }}-${{ github.event.pull_request.number }}

jobs:
ci_branching:
uses: tinybirdco/ci/.github/workflows/ci.yml@main
secrets:
admin_token: ${{ secrets.ADMIN_TOKEN }}
tb_host: https://api.tinybird.co
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.diff_tmp
.tinyb
*.swp
*.swo
.e
1 change: 1 addition & 0 deletions datasources/bq_conector.datasource
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ IMPORT_SERVICE 'bigquery'
IMPORT_SCHEDULE '0 */12 * * *'
IMPORT_STRATEGY 'replace'
IMPORT_QUERY 'SELECT `a`, `b`, `c` FROM `yiman-project-1.test2.table1`'

3 changes: 2 additions & 1 deletion pipes/api_copy.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ DESCRIPTION >

SQL >

SELECT * from table_barra_n5 where column_01 is not null and column_00 =2
SELECT * from table_barra_n5



11 changes: 11 additions & 0 deletions pipes/events_test_ym.datasource
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

SCHEMA >
`Customer` String `json:$.Customer`,
`Product` String `json:$.Product`,
`Qtr_4` Nullable(String) `json:$.['Qtr 4']`,
`Qtr_2` Nullable(String) `json:$.['Qtr 2']`,
`Qtr_3` Nullable(String) `json:$.['Qtr 3']`,
`Qtr_1` Nullable(String) `json:$.['Qtr 1']`

ENGINE "MergeTree"
ENGINE_SORTING_KEY "Customer, Product"
File renamed without changes.
1 change: 0 additions & 1 deletion pipes/pipe_cli_4.pipe
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
TOKEN "my_token" READ

NODE pipe_cli_4_0
SQL >
Expand Down
2 changes: 2 additions & 0 deletions pipes/scheduled_api.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ SQL >

select 1 as column_00, 'pipe_pushed' as column_01, now() as column_02


TYPE copy
TARGET_DATASOURCE result_api_copy



32 changes: 0 additions & 32 deletions pipes/test_ym.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,6 @@ SQL >



NODE test_ym_2
SQL >

INSERT INTO events_test_ym (*) VALUES('A','B',NULL,NULL,NULL,NULL)




NODE test_ym_3
SQL >

Expand Down Expand Up @@ -57,27 +49,3 @@ SQL >
order by date desc



NODE test_ym_6
SQL >

--SELECT parseDateTimeBestEffort('2022-12-07 T00:00:00+00:00')
SELECT parseDateTimeBestEffort('2022-12-07 T00:00:00+00:00')
JSONExtractString ({"shift":"morning","service_date":"2022-12-07T00:00:00+00:00"},'service_date') as x



NODE test_ym_7
SQL >

SELECT toDateTime('2022-12-07 T00:00:00+00:00')



NODE test_ym_8
SQL >

SET format_csv_null_representation = 'My NULL';
SELECT * FROM events_test_ym FORMAT CSV;


96 changes: 0 additions & 96 deletions pipes/untitled_pipe_6685.pipe

This file was deleted.