chore: generate
This commit is contained in:
@@ -2,9 +2,7 @@
|
||||
"version": "6",
|
||||
"dialect": "mysql",
|
||||
"id": "72655266-65da-408e-bfd8-9f3a4ad817a5",
|
||||
"prevIds": [
|
||||
"00000000-0000-0000-0000-000000000000"
|
||||
],
|
||||
"prevIds": ["00000000-0000-0000-0000-000000000000"],
|
||||
"ddl": [
|
||||
{
|
||||
"name": "stat",
|
||||
@@ -515,9 +513,7 @@
|
||||
"table": "stat"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"columns": ["id"],
|
||||
"name": "PRIMARY",
|
||||
"table": "stat",
|
||||
"entityType": "pks"
|
||||
@@ -624,4 +620,4 @@
|
||||
}
|
||||
],
|
||||
"renames": []
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,9 +2,7 @@
|
||||
"version": "6",
|
||||
"dialect": "mysql",
|
||||
"id": "e246639a-0da0-4fbd-b7bb-f1781d407780",
|
||||
"prevIds": [
|
||||
"72655266-65da-408e-bfd8-9f3a4ad817a5"
|
||||
],
|
||||
"prevIds": ["72655266-65da-408e-bfd8-9f3a4ad817a5"],
|
||||
"ddl": [
|
||||
{
|
||||
"name": "geo_stat",
|
||||
@@ -1601,25 +1599,19 @@
|
||||
"table": "provider_stat"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"columns": ["id"],
|
||||
"name": "PRIMARY",
|
||||
"table": "geo_stat",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"columns": ["id"],
|
||||
"name": "PRIMARY",
|
||||
"table": "model_stat",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"columns": ["id"],
|
||||
"name": "PRIMARY",
|
||||
"table": "provider_stat",
|
||||
"entityType": "pks"
|
||||
@@ -2038,4 +2030,4 @@
|
||||
}
|
||||
],
|
||||
"renames": []
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,11 +10,7 @@ export type StatDimension = "model" | "provider" | "geo"
|
||||
export function buildStatsQuery(periodStart: Date, periodEnd: Date, dimension: StatDimension) {
|
||||
const periodStartValue = sqlString(periodStart.toISOString())
|
||||
const periodEndValue = sqlString(periodEnd.toISOString())
|
||||
const sourceTable = [
|
||||
Resource.InferenceEvent.catalog,
|
||||
Resource.InferenceEvent.database,
|
||||
Resource.InferenceEvent.table,
|
||||
]
|
||||
const sourceTable = [Resource.InferenceEvent.catalog, Resource.InferenceEvent.database, Resource.InferenceEvent.table]
|
||||
.map(sqlIdentifier)
|
||||
.join(".")
|
||||
const dimensionSql = (() => {
|
||||
|
||||
Reference in New Issue
Block a user