Fix #5162: Sample usage fixed (#5163)

* Fix #5162: Sample usage fixed

* Test Fix
This commit is contained in:
Mayur Singal 2022-05-26 18:45:41 +05:30 committed by GitHub
parent cf268c9cdd
commit f9bb54ed91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 730 additions and 721 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -65,21 +65,30 @@ class QueryParserTest(TestCase):
"""
expected_result = {
"shopify.dim_address": 100,
"shopify.dim_shop": 190,
"shopify.shop": 150,
"shopify.dim_customer": 125,
"dim_customer": 38,
"shopify.dim_location": 75,
"dim_location.shop_id": 25,
"dim_shop.shop_id": 105,
"shopify.dim_product": 130,
"dim_product.shop_id": 80,
"shopify.dim_product_variant": 35,
"dim_shop": 5,
"shop": 28,
"shop_id": 25,
"shopify.dim_staff": 75,
"shopify.fact_line_item": 100,
"shopify.fact_order": 185,
"shopify.dim_api_client": 85,
"shopify.fact_sale": 420,
"shopify.fact_order": 155,
"shopify.product": 5,
"shopify.fact_sale": 260,
"dim_address": 12,
"api": 2,
"dim_location": 4,
"product": 16,
"dim_staff": 5,
"fact_line_item": 17,
"fact_order": 15,
"fact_sale": 27,
"fact_session": 31,
"raw_customer": 10,
"raw_order": 13,
"raw_product_catalog": 6,
}
workflow = Workflow.create(json.loads(config))
workflow.execute()