Skip to content

Commit

Permalink
Merge pull request #197 from KxSystems/KXI-33842
Browse files Browse the repository at this point in the history
KXI-33842 - Data Sources > QSQL not working
  • Loading branch information
Philip-Carneiro-KX authored Nov 30, 2023
2 parents 4662ffb + 2d61da2 commit a0a6664
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/commands/dataSourceCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import {
createKdbDataSourcesFolder,
getConnectedInsightsNode,
} from "../utils/dataSource";
import { handleWSResults } from "../utils/queryUtils";
import { handleScratchpadTableRes, handleWSResults } from "../utils/queryUtils";
import { validateScratchpadOutputVariableName } from "../validators/interfaceValidator";
import {
getDataInsights,
Expand Down Expand Up @@ -287,7 +287,8 @@ export async function runApiDataSource(
JSON.stringify(apiBody)
);
if (apiCall?.arrayBuffer) {
return handleWSResults(apiCall.arrayBuffer);
const results = handleWSResults(apiCall.arrayBuffer);
return handleScratchpadTableRes(results);
}
}

Expand Down Expand Up @@ -394,7 +395,8 @@ export async function runQsqlDataSource(
JSON.stringify(qsqlBody)
);
if (qsqlCall?.arrayBuffer) {
return handleWSResults(qsqlCall.arrayBuffer);
const results = handleWSResults(qsqlCall.arrayBuffer);
return handleScratchpadTableRes(results);
}
}

Expand All @@ -409,7 +411,8 @@ export async function runSqlDataSource(
JSON.stringify(sqlBody)
);
if (sqlCall?.arrayBuffer) {
return handleWSResults(sqlCall.arrayBuffer);
const results = handleWSResults(sqlCall.arrayBuffer);
return handleScratchpadTableRes(results);
}
}

Expand Down

0 comments on commit a0a6664

Please sign in to comment.