chore: generate
This commit is contained in:
parent
5b02ac4d33
commit
16a30041b3
6 changed files with 138 additions and 172 deletions
|
|
@ -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 = (() => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue