musfiqur_rahman
07/06/2020, 3:03 PMdouwe_maan
07/06/2020, 3:28 PMmusfiqur_rahman
07/06/2020, 5:51 PMmusfiqur_rahman
07/06/2020, 5:52 PMrisk_area.m5o
file contains following information
{
version = 1
sql_table_name = tap_covid_19.risk_area
name = risk_area
columns {
country {
primary_key = true
hidden = true
type = string
sql = "{{table}}.account_id"
}
country {
label = Country
description = Country
type = string
sql = "{{table}}.country"
}
deaths {
label = Deaths
description = Deaths
type = integer
sql = "{{table}}.deaths"
}
risk_level {
label = Risk Level
description = Risk Level
type = string
sql = "{{table}}.risk_level"
}
}
}douwe_maan
07/06/2020, 5:54 PMtap_covid_19.topic.m5o file in your /model directory as well?douwe_maan
07/06/2020, 6:00 PMmusfiqur_rahman
07/06/2020, 6:02 PMdouwe_maan
07/06/2020, 6:03 PM.table.m5o extension on that risk_area file of yours 🙂douwe_maan
07/06/2020, 6:05 PMdouwe_maan
07/06/2020, 6:06 PMmusfiqur_rahman
07/06/2020, 6:10 PMrisk_area.table.m5o and also added the tap_covid_19.topic.m5o . However, we I configure the pipeline I got following messagedouwe_maan
07/06/2020, 6:11 PMmusfiqur_rahman
07/06/2020, 6:11 PMtap_covid_19.topic.m5o files contains
{
version = 1
name = custom_risk_area
plugin_namespace = tap_covid_19
label = Risk Area
designs {
risk_area {
label = Risk Area
from = risk_area
description = Risk Area
}
}
}douwe_maan
07/06/2020, 6:12 PMdouwe_maan
07/06/2020, 6:13 PMrisk_area.table.m5o table though! Perhaps deaths would be more appropriate as an aggregate than a column?musfiqur_rahman
07/06/2020, 6:20 PM{
version = 1
sql_table_name = tap_covid_19.risk_area
name = risk_area
columns {
country {
label = Country
description = Country
type = string
sql = "{{table}}.country"
}
risk_level {
label = Risk Level
description = Risk Level
type = string
sql = "{{table}}.risk_level"
}
}
aggregates {
deaths {
label = Total Death
description = Total Death
type = sum
sql = "{{table}}.deaths"
}
}
}douwe_maan
07/06/2020, 6:23 PMdouwe_maan
07/06/2020, 6:25 PMmusfiqur_rahman
07/06/2020, 6:29 PMmusfiqur_rahman
07/06/2020, 6:39 PMdouwe_maan
07/06/2020, 6:42 PMdouwe_maan
07/06/2020, 6:42 PMmusfiqur_rahman
07/06/2020, 6:49 PMmusfiqur_rahman
07/06/2020, 7:11 PMdouwe_maan
07/06/2020, 7:21 PMmeltano.yml file; not custom models in the /model directory... that’s definitely an oversight and a bug. I’ll create an issue after lunch and will see if this will be easy to fix!douwe_maan
07/06/2020, 8:30 PMdouwe_maan
07/06/2020, 8:38 PMdouwe_maan
07/06/2020, 8:40 PMmusfiqur_rahman
07/06/2020, 8:52 PM