joseph_lozano
02/17/2023, 8:58 PMstream_maps
+ meltano.yml
. What is the correct way to alias a property?joseph_lozano
02/17/2023, 8:59 PMcontract_date
property with 'Contract Date'
value.
#meltano.yml
plugins:
extractors:
- name: tap-custom
config:
stream_maps:
sales:
"Contract Date": contract_date
#meltano.yml
plugins:
extractors:
- name: tap-custom
config:
stream_maps:
sales:
contract_date: "\"Contract Date\""
Matt Menzenski
02/17/2023, 9:05 PMContract Date
as contract_date
?Matt Menzenski
02/17/2023, 9:08 PM#meltano.yml
plugins:
extractors:
- name: tap-custom
config:
stream_maps:
sales:
contract_date: "record['Contract Date']"
Matt Menzenski
02/17/2023, 9:08 PMMatt Menzenski
02/17/2023, 9:10 PM#meltano.yml
plugins:
extractors:
- name: tap-custom
config:
stream_maps:
sales:
contract_date: "record['Contract Date']"
"Contract Date": null
joseph_lozano
02/17/2023, 10:47 PMyou are trying to rename the existing columnYesasContract Date
?contract_date
I wonder if this would work:
```#meltano.yml
plugins:
extractors:
- name: tap-custom
config:
stream_maps:
sales:
contract_date: "record['Contract Date']"```The above syntax worked, thanks Matt!
maybe it should be this, to drop the field with the old name too?I added
"Contract Date": null
but the property still appeared in the output 🤔joseph_lozano
02/17/2023, 10:51 PM__else__: null
and that also didn’t work for some reasonedgar_ramirez_mondragon
02/20/2023, 3:58 PM__else__: __NULL__
?joseph_lozano
02/20/2023, 4:55 PM#meltano.yml
plugins:
extractors:
- name: tap-custom
config:
stream_maps:
sales:
contract_date: "record['Contract Date']"
__else__: __NULL__
felippe_felisola_caso
02/22/2023, 2:25 AMrecord['Contract Date']
column in the previous example, without using else
?edgar_ramirez_mondragon
02/22/2023, 2:52 AMContract Date: __NULL__
what you need?felippe_felisola_caso
02/22/2023, 11:53 AMedgar_ramirez_mondragon
02/22/2023, 10:46 PMAnd that doesn’t workHave you tried wrapping the column name in quotes:
plugins:
extractors:
- name: tap-custom
config:
stream_maps:
sales:
contract_date: "record['Contract Date']"
"Contract Date": __NULL__
felippe_felisola_caso
02/23/2023, 2:10 AMnull
, __NULL__
and record[]
Thanks a lot, Edgar 😃