Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zendesk Support: Ticket custom fields not extracted properly after normalization #7441

Closed
asyarif93 opened this issue Oct 28, 2021 · 2 comments · Fixed by #8050
Closed

Zendesk Support: Ticket custom fields not extracted properly after normalization #7441

asyarif93 opened this issue Oct 28, 2021 · 2 comments · Fixed by #8050

Comments

@asyarif93
Copy link
Contributor

asyarif93 commented Oct 28, 2021

Enviroment

  • Airbyte version: 0.30.20-alpha
  • OS Version / Instance: Amazon Linux / EC2 t3a.large
  • Deployment: example are Docker or Kubernetes deploy env
  • Source Connector and version: Zendesk Support 0.1.3
  • Destination Connector and version: Bigquery 0.4.1
  • Severity: Medium
  • Step where error happened: When Look table result

Current Behavior

in table tickets item in field custom_fields is {"id":114101613833,"value":"87"} however in table tickets_custom_fields the value field is null

Expected Behavior

in table tickets_custom_fields the value field should be 87

Logs

If applicable, please upload the logs from the failing operation.
For sync jobs, you can download the full logs from the UI by going to the sync attempt page and
clicking the download logs button at the top right of the logs display window.

LOG

replace this with
your long log
output here

Image Reference

Images

custom fields in tickets table

value in tickets table

value in tickets_custom_fields table

Screenshot from 2021-10-28 14-22-20

airbyte generated normalization query

Screenshot from 2021-10-28 14-22-51

Steps to Reproduce

  1. set catalog schema to tickets

Are you willing to submit a PR?

Remove this with your answer.
Yes

@asyarif93 asyarif93 added the type/bug Something isn't working label Oct 28, 2021
@asyarif93
Copy link
Contributor Author

asyarif93 commented Oct 28, 2021

does when property value is empty object, airbyte might failed generate dbt normalization query?
it this was the case, i can make fix along with PR #7377

(edit) it might be tricky, as value property might be text, numbers or even an array.
considering it has same schema with singer version, i think this was more related with bigquery destination

"custom_fields": {
"items": {
"properties": {
"id": {
"type": ["null", "integer"]
},
"value": {}
},
"type": ["null", "object"]
},
"type": ["null", "array"]
},

@sherifnada sherifnada added the area/connectors Connector related issues label Nov 15, 2021
@sherifnada
Copy link
Contributor

it seems like the cause of this issue is that the value field here does not contain a schema. Therefore the fix here would be to identify the right schema/data types in the catalog, and normalization will be able to address it correctly.

@sherifnada sherifnada added this to the Connectors Nov 26 2021 milestone Nov 15, 2021
@Zirochkaa Zirochkaa assigned Zirochkaa and unassigned Zirochkaa Nov 15, 2021
@yevhenii-ldv yevhenii-ldv self-assigned this Nov 17, 2021
@yevhenii-ldv yevhenii-ldv changed the title zendesk ticket custom fields not extracted properly after normalization Zendesk Support: Ticket custom fields not extracted properly after normalization Nov 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment