Skip to content

Commit

Permalink
fix(pinot): query options
Browse files Browse the repository at this point in the history
  • Loading branch information
SkeLLLa committed Jul 17, 2024
1 parent 7ead4e9 commit c3e4a73
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/client/broker/broker-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class PinotClient implements IPinotClient {

private static ENDPOINTS = { sql: '/query/sql' };

private static stringifyOptions(
private static toQueryOptions(
options?: IPinotQueryOptions,
): string | undefined {
return options
Expand Down Expand Up @@ -49,7 +49,7 @@ export class PinotClient implements IPinotClient {
path: PinotClient.ENDPOINTS.sql,
body: JSON.stringify({
sql,
options: PinotClient.stringifyOptions(options),
queryOptions: PinotClient.toQueryOptions(options),
trace,
}),
});
Expand All @@ -64,7 +64,7 @@ export class PinotClient implements IPinotClient {
first: response.resultTable?.rows?.slice(0, 3),
last: response.resultTable?.rows?.slice(-3),
sql,
options,
queryOptions: PinotClient.toQueryOptions(options),
},
});
}
Expand Down Expand Up @@ -135,7 +135,7 @@ export class PinotClient implements IPinotClient {
cause: error as Error,
data: {
sql,
options,
queryOptions: PinotClient.toQueryOptions(options),
first: response.resultTable?.rows?.slice(0, 3),
last: response.resultTable?.rows?.slice(-3),
},
Expand Down

0 comments on commit c3e4a73

Please sign in to comment.