Skip to content

Commit

Permalink
Merge pull request #52 from comake/groupBySupport
Browse files Browse the repository at this point in the history
Group by support
  • Loading branch information
jagzmz authored Nov 1, 2024
2 parents 9769dce + 12c47cf commit 11137bc
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@comake/skl-js-engine",
"version": "0.22.0",
"version": "0.23.0",
"description": "Standard Knowledge Language Javascript Engine",
"keywords": [
"skl",
Expand Down
2 changes: 1 addition & 1 deletion src/storage/query-adapter/sparql/SparqlQueryBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1136,7 +1136,7 @@ export class SparqlQueryBuilder {
],
combinedWhere,
[], // orders
groupVariables, // group by
groupVariables.length > 0 ? groupVariables : undefined, // group by
options.limit,
options.offset
);
Expand Down
2 changes: 1 addition & 1 deletion src/util/SparqlUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ export function createSparqlSelectQuery(
limit?: number,
offset?: number,
): SelectQuery {
let groupings: Grouping[] | undefined = [];
let groupings: Grouping[] | undefined;
if (group) {
if (Array.isArray(group)) {
groupings = group.map(g => ensureGrouping(g));
Expand Down

0 comments on commit 11137bc

Please sign in to comment.