This is an automated email from the ASF dual-hosted git repository. beto pushed a commit to branch table-autocomplete-catalog-fix in repository https://gitbox.apache.org/repos/asf/superset.git
commit c499269aff2ceb9690a6d1a5f0656dc15a5b45c1 Author: Beto Dealmeida <[email protected]> AuthorDate: Thu May 9 13:59:15 2024 -0400 fix: table autocomplete should pass schema --- .../src/SqlLab/components/AceEditorWrapper/useKeywords.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/superset-frontend/src/SqlLab/components/AceEditorWrapper/useKeywords.ts b/superset-frontend/src/SqlLab/components/AceEditorWrapper/useKeywords.ts index 2eac21ff39..df45290f6c 100644 --- a/superset-frontend/src/SqlLab/components/AceEditorWrapper/useKeywords.ts +++ b/superset-frontend/src/SqlLab/components/AceEditorWrapper/useKeywords.ts @@ -146,7 +146,9 @@ export function useKeywords( const insertMatch = useEffectEvent((editor: Editor, data: any) => { if (data.meta === 'table') { - dispatch(addTable({ id: queryEditorId, dbId }, data.value, schema)); + dispatch( + addTable({ id: queryEditorId, dbId }, data.value, catalog, schema), + ); } let { caption } = data;
