avishua_stein
11/14/2022, 9:13 PMadditional_information
field that contains a bunch of keys which may not be standardized? If it's relevant, I plan on loading the data to BigQuery. We're also doing inline schema definitions like the attached code. Thanks y'all!
schema = th.PropertiesList(
th.Property(
"id",
th.StringType,
),
th.Property(
"conversationId",
th.StringType,
),
th.Property(
"customerId",
th.StringType,
),
th.Property(
"timestamp",
th.DateTimeType,
)...
).to_dict()
edgar_ramirez_mondragon
11/15/2022, 2:01 AMth.Property(
"additional_information",
th.ObjectType(),
)
avishua_stein
11/15/2022, 2:04 PMedgar_ramirez_mondragon
11/15/2022, 4:31 PMadditional_properties
for the rest, e.g.
th.Property(
"additional_information",
th.ObjectType(
th.Property("known", th.StringType),
additional_properties=th.StringType,
),
)
daniel_luftspring
11/15/2022, 5:30 PMpatternProperties
within singer_sdk.typing
. Does it exist already and if not is support planned?avishua_stein
11/15/2022, 5:43 PMObject
types to the BQ RECORD
type. I think the issue is that for RECORD
, BQ expects a schema and drops any keys which aren't specified. outputting to jsonl returned the desired dataedgar_ramirez_mondragon
11/15/2022, 6:44 PMdaniel_luftspring
11/15/2022, 6:45 PMavishua_stein
11/15/2022, 6:47 PMedgar_ramirez_mondragon
11/15/2022, 6:55 PM