fix(doris): qualify external catalog tables
This commit is contained in:
1 parent
c9c2fddfe2
commit
a9ca66a829
21 files changed
+222
-44
No files matched your search
@@ -52,6 +52,7 @@ export function useDataGridActions(activeTab: ComputedRef<QueryTab | undefined>)
|
||||
return buildTableSelectSql({
|
||||
databaseType: effectiveDbType,
|
||||
identifierQuote: connectionStore.connectionIdentifierQuote?.(tab.connectionId),
|
||||
database: tableMeta?.database,
|
||||
schema: tableMeta?.schema,
|
||||
tableName: tableMeta?.tableName ?? "",
|
||||
tableType: tableMeta?.tableType,
|
||||
|
||||
@@ -67,6 +67,7 @@ async function openTableTarget(target: NavigationTarget, options: { tableInfoTab
|
||||
identifierQuote,
|
||||
schema: target.schema,
|
||||
catalog: target.catalog,
|
||||
database: target.database,
|
||||
tableName: target.tableName,
|
||||
tableType: targetTableType,
|
||||
columns: columns.map((column) => column.name),
|
||||
@@ -77,6 +78,7 @@ async function openTableTarget(target: NavigationTarget, options: { tableInfoTab
|
||||
queryStore.updateSql(tabId, sql);
|
||||
queryStore.setTableMeta(tabId, {
|
||||
catalog: target.catalog,
|
||||
database: target.database,
|
||||
schema: target.schema,
|
||||
tableName: target.tableName,
|
||||
tableType: targetTableType,
|
||||
@@ -91,6 +93,7 @@ async function openTableTarget(target: NavigationTarget, options: { tableInfoTab
|
||||
identifierQuote,
|
||||
schema: target.schema,
|
||||
catalog: target.catalog,
|
||||
database: target.database,
|
||||
tableName: target.tableName,
|
||||
tableType: targetTableType,
|
||||
whereInput: target.whereInput,
|
||||
@@ -100,6 +103,7 @@ async function openTableTarget(target: NavigationTarget, options: { tableInfoTab
|
||||
queryStore.setTableMeta(tabId, {
|
||||
schema: target.schema,
|
||||
catalog: target.catalog,
|
||||
database: target.database,
|
||||
tableName: target.tableName,
|
||||
tableType: targetTableType,
|
||||
columns: [],
|
||||
@@ -119,6 +123,7 @@ async function openTableTarget(target: NavigationTarget, options: { tableInfoTab
|
||||
identifierQuote,
|
||||
schema: target.schema,
|
||||
catalog: target.catalog,
|
||||
database: target.database,
|
||||
tableName: target.tableName,
|
||||
tableType: targetTableType,
|
||||
whereInput: target.whereInput,
|
||||
@@ -135,6 +140,7 @@ async function openTableTarget(target: NavigationTarget, options: { tableInfoTab
|
||||
queryStore.setTableMeta(tabId, {
|
||||
schema: target.schema,
|
||||
catalog: target.catalog,
|
||||
database: target.database,
|
||||
tableName: target.tableName,
|
||||
tableType: targetTableType,
|
||||
columns,
|
||||
@@ -146,6 +152,7 @@ async function openTableTarget(target: NavigationTarget, options: { tableInfoTab
|
||||
identifierQuote,
|
||||
schema: target.schema,
|
||||
catalog: target.catalog,
|
||||
database: target.database,
|
||||
tableName: target.tableName,
|
||||
tableType: targetTableType,
|
||||
whereInput: target.whereInput,
|
||||
|
||||
Reference in new issue
Block a user