feat: Add autocomplete support for table schema on SQL editor (#27329)
This commit is contained in:
parent
dd347c051f
commit
0a1c8e8374
|
|
@ -1141,6 +1141,7 @@ export const getAllDatasourceTableKeys = createSelector(
|
|||
tables[table.name] = "table";
|
||||
table.columns.forEach((column) => {
|
||||
tables[`${table.name}.${column.name}`] = column.type;
|
||||
tables[`${column.name}`] = column.type;
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -46,7 +46,9 @@ export function getHintDetailsFromClassName(
|
|||
}
|
||||
}
|
||||
|
||||
const MAX_NUMBER_OF_SQL_HINTS = 200;
|
||||
// Beyond 270 hints, the main thread task for rendering the hint tooltip becomes greater than 50ms
|
||||
// 50ms is the limit beyond which a task is considered a long task
|
||||
const MAX_NUMBER_OF_SQL_HINTS = 270;
|
||||
|
||||
export function filterCompletions(completions: Hints) {
|
||||
completions.list = completions.list.slice(0, MAX_NUMBER_OF_SQL_HINTS);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user