Skip to content

Commit

Permalink
fix: modify sample_data
Browse files Browse the repository at this point in the history
  • Loading branch information
ayush-shah committed Nov 21, 2024
1 parent 486516c commit cffdddc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 47 deletions.
45 changes: 0 additions & 45 deletions ingestion/examples/sample_data/looker/dashboardDataModels.json
Original file line number Diff line number Diff line change
Expand Up @@ -158,51 +158,6 @@
"ordinalPosition": 5
}
]
},
{
"name": "\"orders_view\" || \"operations_view\"",
"displayName": "Orders View and Operations View",
"description": "Orders View and Operations View from Sample Data",
"dataModelType": "LookMlView",
"serviceType": "Looker",
"sql": "view: orders {\n sql_table_name: orders ;;\n\n dimension: \"1. Phase I\" {\n type: string\n sql: ${TABLE}.status ;;\n }\n\n dimension: \"4. Authorized\" {\n type: int\n sql: ${TABLE}.amount ;;\n }\n}",
"columns": [
{
"name": "0. Pre-clinical",
"dataType": "NUMERIC",
"dataTypeDisplay": "numeric",
"description": "Vaccine Candidates in phase: 'Pre-clinical'",
"ordinalPosition": 1
},
{
"name": "2. Phase II or Combined I/II",
"dataType": "NUMERIC",
"dataTypeDisplay": "numeric",
"description": "Vaccine Candidates in phase: 'Phase II or Combined I/II'",
"ordinalPosition": 2
},
{
"name": "1. Phase I",
"dataType": "NUMERIC",
"dataTypeDisplay": "numeric",
"description": "Vaccine Candidates in phase: 'Phase I'",
"ordinalPosition": 3
},
{
"name": "3. Phase III",
"dataType": "NUMERIC",
"dataTypeDisplay": "numeric",
"description": "Vaccine Candidates in phase: 'Phase III'",
"ordinalPosition": 4
},
{
"name": "4. Authorized",
"dataType": "NUMERIC",
"dataTypeDisplay": "numeric",
"description": "Vaccine Candidates in phase: 'Authorize'",
"ordinalPosition": 5
}
]
}
]

Original file line number Diff line number Diff line change
Expand Up @@ -899,7 +899,7 @@ def ingest_tables(self) -> Iterable[Either[Entity]]:

self.metadata.ingest_table_sample_data(
table_entity,
SamplerResponse(
sample_data=SamplerResponse(
table=table_entity,
sample_data=SampleData(
data=TableData(
Expand All @@ -908,7 +908,7 @@ def ingest_tables(self) -> Iterable[Either[Entity]]:
),
store=True,
),
),
).sample_data.data,
)

if table.get("customMetrics"):
Expand Down

0 comments on commit cffdddc

Please sign in to comment.