datahub/smoke-test/test_resources/actions/datasets_template.yaml

53 lines
2.0 KiB
YAML

# This file is used to define a dataset and provide metadata for it
- urn: urn:li:dataset:(urn:li:dataPlatform:hive,{{ test_id }}.user.clicks_6,PROD)
subtype: Table
schema:
file: test_resources/actions/user_clicks.avsc
- urn: urn:li:dataset:(urn:li:dataPlatform:hive,{{ test_id }}.user.clicks_5,PROD)
subtype: Table
schema:
file: test_resources/actions/user_clicks.avsc
downstreams:
- urn:li:dataset:(urn:li:dataPlatform:hive,{{ test_id }}.user.clicks_6,PROD)
- urn: urn:li:dataset:(urn:li:dataPlatform:hive,{{ test_id }}.user.clicks_4,PROD)
subtype: Table
schema:
file: test_resources/actions/user_clicks.avsc
downstreams:
- urn:li:dataset:(urn:li:dataPlatform:hive,{{ test_id }}.user.clicks_5,PROD)
- urn: urn:li:dataset:(urn:li:dataPlatform:hive,{{ test_id }}.user.clicks_3,PROD)
subtype: Table
schema:
file: test_resources/actions/user_clicks.avsc
downstreams:
- urn:li:dataset:(urn:li:dataPlatform:hive,{{ test_id }}.user.clicks_4,PROD)
- urn: urn:li:dataset:(urn:li:dataPlatform:hive,{{ test_id }}.user.clicks_2,PROD)
subtype: Table
schema:
file: test_resources/actions/user_clicks.avsc
downstreams:
- urn:li:dataset:(urn:li:dataPlatform:hive,{{ test_id }}.user.clicks_3,PROD)
- urn: urn:li:dataset:(urn:li:dataPlatform:hive,{{ test_id }}.user.clicks,PROD)
subtype: Table
schema:
file: test_resources/actions/user_clicks.avsc
downstreams:
- urn:li:dataset:(urn:li:dataPlatform:hive,{{ test_id }}.user.clicks_2,PROD)
- urn: urn:li:dataset:(urn:li:dataPlatform:events,{{ test_id }}.ClickEvent,PROD)
subtype: Topic
description: |
This is a sample event that is generated when a user clicks on a link.
Do not use this event for any purpose other than testing.
schema:
file: test_resources/actions/user_clicks.avsc
fields:
- id: ip
description: 'the ip address of the user'
- id: user_id
description: 'the user id'
downstreams:
- urn:li:dataset:(urn:li:dataPlatform:hive,{{ test_id }}.user.clicks,PROD)