twenty/packages/twenty-tinybird/tests/example.yml
Ana Sofia Marin Alexandre 8ef4efa0f5
add twenty-tinybird package (#8030)
https://github.com/twentyhq/private-issues/issues/75

**TLDR**

Add twenty-server package, wich contains the last tinybird datasources
and pipes used in analytics.

This new version of the API endpoints, pipes and datasources are
inspired by the implementation of dub.co
(https://github.com/dubinc/dub/blob/main/packages/tinybird/).

It contains the webhooks analytics, serverless functions duration and
serverless functions error count analytics. As well as


**In order to test**

- Follow the instructions in the README.md on twenty-tinybird using your
admin token from twenty_analytics_playground if you want to modify them.
- For a better experience add the extension Tinybird support for VsCode 
- If you want more info about datasources and pipes please read the
tinybird docs.

---------

Co-authored-by: Félix Malfait <felix@twenty.com>
Co-authored-by: Félix Malfait <felix.malfait@gmail.com>
2024-10-29 10:31:05 +01:00

30 lines
1.0 KiB
YAML

##############################################################################################################################
### Visit https://www.tinybird.co/docs/production/implementing-test-strategies.html#data-quality-tests ###
### for more details on Data Quality tests ###
##############################################################################################################################
- example_no_negative_numbers:
max_bytes_read: null
max_time: null
sql: |
SELECT
number
FROM numbers(10)
WHERE
number < 0
# - example_top_products_params_no_empty_top_10_on_2023:
# max_bytes_read: null
# max_time: null
# sql: |
# SELECT *
# FROM top_products_params
# WHERE empty(top_10)
# pipe:
# name: top_products_params
# params:
# start: '2023-01-01'
# end: '2023-12-31'