jan_soubusta
01/25/2024, 3:14 PMtap-jira
again (but maybe general question):
I am regularly struggling with how to select
streams/attributes(nested) with wild cards.
Jira issues stream contains fields
attribute, which contains a huge and nested structure, including hundreds of custom fields.
I need to select just a small subset of nested fields, e.g. assignee
.
I tried many variants but nothing works, assignee is never persisted in target table (in Snowflake).
I tested:
select:
- issues.fields.assignee*
- issues.fields.assignee.*
I also tried to flatten attributes:
config:
flattening_enabled: 'True'
flattening_max_depth: 1
and select:
select:
- issues.fields__assignee*
does not work.
Any advice? Does this work the same in all taps or can a tap affect how this behaves?Edgar Ramírez (Arch.dev)
01/25/2024, 6:16 PMjan_soubusta
01/26/2024, 7:26 AMissues.*
, they are materialized to the target table.
When I use the flattening, each custom field is a separate column, so the table is extremely wide, which does not help to performance, at least in some databases 😉
That and the fact that I don't want them at all are reasons why I would like to filter them out.jan_soubusta
01/26/2024, 8:13 AMEdgar Ramírez (Arch.dev)
01/26/2024, 7:13 PMjan_soubusta
01/26/2024, 7:15 PMjan_soubusta
01/26/2024, 7:16 PMEdgar Ramírez (Arch.dev)
01/26/2024, 7:19 PMselect:
- issues.*
- !issues.fields.*
- issues.fields.assignee
- issues.fields.assignee.*
?jan_soubusta
01/26/2024, 7:21 PMEdgar Ramírez (Arch.dev)
01/26/2024, 7:26 PMjan_soubusta
01/26/2024, 7:36 PMjan_soubusta
01/26/2024, 7:37 PMEdgar Ramírez (Arch.dev)
01/26/2024, 8:53 PM