Skip to content

Commit d23d7ea

Browse files
committed
fix: rm unused
1 parent 0e906e7 commit d23d7ea

File tree

3 files changed

+4
-16
lines changed

3 files changed

+4
-16
lines changed

src/containers/UserSettings/settings.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ export const appearanceSection: SettingsSection = {
160160
export const experimentsSection: SettingsSection = {
161161
id: 'experimentsSection',
162162
title: i18n('section.experiments'),
163-
settings: [enableNetworkTable, useShowPlanToSvgTables],
163+
settings: [enableNetworkTable, useShowPlanToSvgTables, enableQueryStreamingSetting],
164164
};
165165

166166
export const devSettingsSection: SettingsSection = {

src/store/reducers/query/query.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,9 @@ export const queryApi = api.injectEndpoints({
223223
querySettings.tracingLevel && enableTracingLevel
224224
? TracingLevelNumber[querySettings.tracingLevel]
225225
: undefined,
226-
limit_rows: 100000000,
226+
limit_rows: isNumeric(querySettings.limitRows)
227+
? Number(querySettings.limitRows)
228+
: undefined,
227229
transaction_mode:
228230
querySettings.transactionMode === 'implicit'
229231
? undefined

src/store/reducers/query/utils.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,3 @@ export function isStreamDataChunk(content: StreamingChunk): content is StreamDat
4646
export function isQueryResponseChunk(content: StreamingChunk): content is QueryResponseChunk {
4747
return content?.meta?.event === 'QueryResponse';
4848
}
49-
50-
export function convertToKeyValueRows(
51-
rows: unknown[],
52-
columns: {name: string}[],
53-
): {[key: string]: string | number | null | undefined}[] {
54-
const columnNames = columns.map((col) => col.name);
55-
return rows.map((row) => {
56-
const keyValueRow: {[key: string]: string | number | null | undefined} = {};
57-
(row as any[]).forEach((value, index) => {
58-
keyValueRow[columnNames[index]] = value;
59-
});
60-
return keyValueRow;
61-
});
62-
}

0 commit comments

Comments
 (0)