-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Shopify connector should convert prices into numbers #4841
Labels
Milestone
Comments
Scoping:
Link to zira. |
I detected next price fields, which should be changed to number:
|
vitaliizazmic
added a commit
that referenced
this issue
Aug 5, 2021
vitaliizazmic
added a commit
that referenced
this issue
Aug 6, 2021
9 tasks
vitaliizazmic
added a commit
that referenced
this issue
Aug 9, 2021
vitaliizazmic
added a commit
that referenced
this issue
Aug 17, 2021
vitaliizazmic
added a commit
that referenced
this issue
Aug 18, 2021
vitaliizazmic
added a commit
that referenced
this issue
Aug 18, 2021
vitaliizazmic
added a commit
that referenced
this issue
Aug 18, 2021
vitaliizazmic
added a commit
that referenced
this issue
Aug 18, 2021
sherifnada
modified the milestones:
Connectors, September 3rd,
Connectors, September 17th 2021
Sep 3, 2021
vitaliizazmic
added a commit
that referenced
this issue
Sep 7, 2021
vitaliizazmic
added a commit
that referenced
this issue
Sep 7, 2021
sherifnada
modified the milestones:
Connectors, September 17th 2021,
Connectors, October 1st 2021
Sep 17, 2021
vitaliizazmic
added a commit
that referenced
this issue
Sep 17, 2021
* Source Shopify #4841 - update schemas, transform root properties * Source Shopify #4841 - transform nested properties * Source Shopify #4841 - ignore transforming for null values * Source Shopify #4841 - improving according to PR review * Source Shopify #4841 - create transformer * Source Shopify #4841 - reformat * Source Shopify #4841 - reformat(fix) * Source Shopify #4841 - improving extracting schemas type * Source Shopify #4841 - unit tests for transform solution * Source Shopify #4841 - reformat * Source Shopify - fix according to review * Source Shopify - fix DRY * Source Shopify - fix orders schema (add type) * Source Shopify - fixing according to PR review * Source Shopify - bump version * Source Shopify - update changelogs
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Tell us about the problem you're trying to solve
Most price-related fields created by the Shopify connector are strings. For example,
total_price
onorders
is a string. This makes it difficult to do simple math or create sales reports.Describe the solution you’d like
I'd like the Shopify connector to transform price fields into numbers.
Describe the alternative you’ve considered or used
I could write a custom transformation with dbt, but it seems like the Shopify connector should natively do this.
Additional context
Discussion here:
https://airbytehq.slack.com/archives/C01MFR03D5W/p1626731077032400
Shopify's API returns prices as strings, often with a separate field specifying the currency. See fields like
total_price
andtotal_tax
here:https://shopify.dev/api/admin/rest/reference/orders/order#properties-2021-07
So it makes sense that the connector treats these as strings. However, it'd be really nice if it could handle the transformation.
Are you willing to submit a PR?
This is a bit beyond me at the moment.
The text was updated successfully, but these errors were encountered: