Igor Safonov
12/26/2022, 7:22 PMgoogle ads and databricks lakehouse (deployed on minikube with helm, v0.40.25)
Unfortunately, it causes an error during an execution of an SQL statement in the absence of column types (I edited it a bit for readability):
CREATE TABLE <table> (_airbyte_ab_id string, _airbyte_emitted_at string, `campaign.id` , `metrics.clicks` , `segments.date`) USING csv LOCATION '<location>' options ("header" = "true", "multiLine" = "true")
Json schema for stream usr_igsaf.google_ads_test: {"type":"object","$schema":"<http://json-schema.org/draft-07/schema#>","properties":{"campaign.id":{"type":["integer","null"]},"campaign.name":{"type":["string","null"]},"segments.date":{"type":["string","null"],"format":"date"},"metrics.clicks":{"type":["integer","null"]},"metrics.conversions":{"type":["number","null"]},"metrics.cost_micros":{"type":["integer","null"]},"metrics.impressions":{"type":["integer","null"]},"user_location_view.country_criterion_id":{"type":["integer","null"]}},"additionalProperties":true}
Looks like the code in the databricks integration is not ready to see arrays in the type field:
final String type = node.get("type").asText();
schemaString.append(", `").append(header).append("` ").append(type.equals("number") ? "double" : type);
If I contribute a fix, would it take long until it gets released?Nataly Merezhuk (Airbyte)
12/27/2022, 3:49 PMIgor Safonov
01/11/2023, 10:17 AMuser
01/12/2023, 2:58 PMIgor Safonov
01/17/2023, 9:38 AM