@gingkoo/pandora-metabase 0.0.1-alpha.12 → 0.0.1-alpha.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -18,6 +18,7 @@ export interface ColumnType {
18
18
  name: string;
19
19
  database_type: SQL_COLUMN_TYPE | '';
20
20
  sql?: string;
21
+ id?: string;
21
22
  }
22
23
  export interface ColumnGroupType {
23
24
  condition: string;
package/lib/es/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @gingkoo/pandora-metabase v0.0.1-alpha.12
2
+ * @gingkoo/pandora-metabase v0.0.1-alpha.13
3
3
  */
4
4
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
5
5
  import * as React from 'react';
@@ -2296,7 +2296,8 @@ class SqlVisionStore {
2296
2296
  alias: '',
2297
2297
  datasourceId: '',
2298
2298
  datasourceName: '',
2299
- column: ''
2299
+ column: '',
2300
+ column_id: ''
2300
2301
  };
2301
2302
  if (index === 1) {
2302
2303
  table1 = {
@@ -2305,7 +2306,8 @@ class SqlVisionStore {
2305
2306
  alias: mainTable.table.alias,
2306
2307
  datasourceId: mainTable.table.datasourceId,
2307
2308
  datasourceName: mainTable.table.datasourceName,
2308
- column: ''
2309
+ column: '',
2310
+ column_id: ''
2309
2311
  };
2310
2312
  }
2311
2313
  item = {
@@ -2318,7 +2320,8 @@ class SqlVisionStore {
2318
2320
  alias: '',
2319
2321
  datasourceId: '',
2320
2322
  datasourceName: '',
2321
- column: ''
2323
+ column: '',
2324
+ column_id: ''
2322
2325
  },
2323
2326
  columns: []
2324
2327
  };
@@ -4983,10 +4986,12 @@ const JoinData = props => {
4983
4986
  name,
4984
4987
  sql,
4985
4988
  datasourceId,
4986
- datasourceName
4989
+ datasourceName,
4990
+ id = ''
4987
4991
  } = record;
4988
4992
  let newMeta = store.metaList.slice();
4989
4993
  newMeta[index][type].column = name;
4994
+ newMeta[index][type].column_id = id;
4990
4995
  if (type === FlagLocation.TABLE_1) {
4991
4996
  if (newMeta[index][type].alias !== alias) {
4992
4997
  newMeta[index][type].alias = alias;