Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ query CubeQuery {
}

query CubeQuery {
cube(where: { orders: { created_at: { inDateRange: "2 weeks ago to now" } } }) {
cube(
where: { orders: { created_at: { inDateRange: "2 weeks ago to now" } } }
) {
orders {
count
created_at {
Expand Down Expand Up @@ -130,3 +132,14 @@ query CubeQuery {
}
}
}

query CubeQuery {
cube(where: { orders: { created_at: { inDateRange: "This year" } } }) {
orders(orderBy: { created_at: asc }) {
count
created_at {
year
}
}
}
}
15 changes: 14 additions & 1 deletion packages/cubejs-api-gateway/test/graphql-queries/base.gql
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ query CubeQuery {
}

query CubeQuery {
cube(where: { orders: { createdAt: { inDateRange: "2 weeks ago to now" } } }) {
cube(
where: { orders: { createdAt: { inDateRange: "2 weeks ago to now" } } }
) {
orders {
count
createdAt {
Expand Down Expand Up @@ -130,3 +132,14 @@ query CubeQuery {
}
}
}

query CubeQuery {
cube(where: { orders: { createdAt: { inDateRange: "This year" } } }) {
orders(orderBy: { createdAt: asc }) {
count
createdAt {
year
}
}
}
}
2 changes: 1 addition & 1 deletion packages/cubejs-questdb-driver/src/QuestQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const GRANULARITY_TO_INTERVAL: Record<string, string> = {
hour: 'h',
day: 'd',
month: 'M',
year: 'Y'
year: 'y'
};

class QuestParamAllocator extends ParamAllocator {
Expand Down
Loading