Closed hbd closed 3 years ago
@hbd can you double-check this?
I just created a connection between Shopify (0.1.12) to Postgres (0.3.9) and those are my output schemas
@hbd
Please create the new connection between the Source Connector and Destination, using the latest Source Shopify connector
version. This issue should be already fixed in 0.1.11
. The latest is 0.1.13
.
@marcosmarxm Apparently, this issue is related to the destination, it holds the old schema, even after the connector is updated it expects the data with the old schema.
@hbd closing as complete, please reopen if the issue persists after resetting your connection schema from the settings page
Enviroment
Current Behavior
The Shopify Products table (
products
) contains a schema that does not match the Shopify API, and is very similar to the Orders schema, like columnsline_items
andcart_token
. This results in a lot of null data as whatever data is being synced to the Products table does not match the schema.Expected Behavior
I expect the Products table to match the schema shown in the Shopify Docs
Logs
Products Table Schema
``` Table "shopify_products" Column | Type | Collation | Nullable | Default ----------------------------------+--------------------------+-----------+----------+--------- id | bigint | | | name | character varying | | | note | character varying | | | tags | character varying | | | test | boolean | | | email | character varying | | | phone | character varying | | | token | character varying | | | app_id | bigint | | | number | bigint | | | gateway | character varying | | | refunds | jsonb | | | user_id | bigint | | | currency | character varying | | | customer | jsonb | | | closed_at | character varying | | | confirmed | boolean | | | device_id | bigint | | | reference | character varying | | | tax_lines | jsonb | | | total_tax | double precision | | | browser_ip | character varying | | | cart_token | character varying | | | created_at | character varying | | | line_items | jsonb | | | source_url | character varying | | | updated_at | character varying | | | checkout_id | bigint | | | location_id | bigint | | | source_name | character varying | | | total_price | double precision | | | cancelled_at | character varying | | | fulfillments | jsonb | | | landing_site | character varying | | | order_number | bigint | | | processed_at | character varying | | | total_weight | bigint | | | cancel_reason | character varying | | | contact_email | character varying | | | total_tax_set | jsonb | | | checkout_token | character varying | | | client_details | jsonb | | | discount_codes | jsonb | | | referring_site | character varying | | | shipping_lines | jsonb | | | subtotal_price | double precision | | | taxes_included | boolean | | | billing_address | jsonb | | | customer_locale | character varying | | | note_attributes | jsonb | | | payment_details | jsonb | | | total_discounts | double precision | | | total_price_set | jsonb | | | total_price_usd | double precision | | | financial_status | character varying | | | landing_site_ref | character varying | | | order_status_url | character varying | | | shipping_address | jsonb | | | order_adjustments | jsonb | | | processing_method | character varying | | | source_identifier | character varying | | | fulfillment_status | character varying | | | subtotal_price_set | jsonb | | | total_tip_received | character varying | | | total_discounts_set | jsonb | | | admin_graphql_api_id | character varying | | | presentment_currency | character varying | | | discount_applications | jsonb | | | payment_gateway_names | jsonb | | | total_line_items_price | double precision | | | buyer_accepts_marketing | boolean | | | total_shipping_price_set | jsonb | | | total_line_items_price_set | jsonb | | | _airbyte_emitted_at | timestamp with time zone | | | _airbyte_shopify_products_hashid | text | | | ```Orders Table Schema
``` Table "shopify_orders" Column | Type | Collation | Nullable | Default --------------------------------+--------------------------+-----------+----------+--------- id | bigint | | | name | character varying | | | note | character varying | | | tags | character varying | | | test | boolean | | | email | character varying | | | phone | character varying | | | token | character varying | | | app_id | bigint | | | number | bigint | | | gateway | character varying | | | refunds | jsonb | | | user_id | character varying | | | currency | character varying | | | customer | jsonb | | | closed_at | character varying | | | confirmed | boolean | | | device_id | character varying | | | reference | character varying | | | tax_lines | jsonb | | | total_tax | character varying | | | browser_ip | character varying | | | cart_token | character varying | | | created_at | character varying | | | line_items | jsonb | | | source_url | character varying | | | updated_at | character varying | | | checkout_id | bigint | | | location_id | bigint | | | source_name | character varying | | | total_price | character varying | | | cancelled_at | character varying | | | fulfillments | jsonb | | | landing_site | character varying | | | order_number | bigint | | | processed_at | character varying | | | total_weight | bigint | | | cancel_reason | character varying | | | contact_email | character varying | | | total_tax_set | jsonb | | | checkout_token | character varying | | | client_details | jsonb | | | discount_codes | jsonb | | | referring_site | character varying | | | shipping_lines | jsonb | | | subtotal_price | character varying | | | taxes_included | boolean | | | billing_address | jsonb | | | customer_locale | character varying | | | note_attributes | jsonb | | | payment_details | jsonb | | | total_discounts | character varying | | | total_price_set | jsonb | | | total_price_usd | character varying | | | financial_status | character varying | | | landing_site_ref | character varying | | | order_status_url | character varying | | | shipping_address | jsonb | | | current_total_tax | character varying | | | processing_method | character varying | | | source_identifier | character varying | | | total_outstanding | character varying | | | fulfillment_status | character varying | | | subtotal_price_set | jsonb | | | total_tip_received | character varying | | | current_total_price | character varying | | | total_discounts_set | jsonb | | | admin_graphql_api_id | character varying | | | presentment_currency | character varying | | | current_total_tax_set | jsonb | | | discount_applications | jsonb | | | payment_gateway_names | jsonb | | | current_subtotal_price | character varying | | | total_line_items_price | character varying | | | buyer_accepts_marketing | boolean | | | current_total_discounts | character varying | | | current_total_price_set | jsonb | | | current_total_duties_set | character varying | | | total_shipping_price_set | jsonb | | | original_total_duties_set | character varying | | | current_subtotal_price_set | jsonb | | | total_line_items_price_set | jsonb | | | current_total_discounts_set | jsonb | | | _airbyte_emitted_at | timestamp with time zone | | | _airbyte_shopify_orders_hashid | text | | | ```Steps to Reproduce
Setup a Shopify Source connection to Postgres.
Are you willing to submit a PR?
Yes, happy to provide a fix once core issue has been identified!