@duckcodeailabs/dql-cli 1.6.32 → 1.6.33
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.
- package/dist/local-runtime.js +7 -7
- package/dist/local-runtime.js.map +1 -1
- package/dist/package.json +10 -10
- package/package.json +11 -11
package/dist/local-runtime.js
CHANGED
|
@@ -1406,7 +1406,7 @@ export async function startLocalServer(opts) {
|
|
|
1406
1406
|
return { ranked: [], snapshot: [] };
|
|
1407
1407
|
const result = await executor.executeQuery(`SELECT table_schema, table_name, column_name, data_type
|
|
1408
1408
|
FROM information_schema.columns
|
|
1409
|
-
WHERE table_schema NOT IN ('
|
|
1409
|
+
WHERE UPPER(table_schema) NOT IN ('INFORMATION_SCHEMA', 'PG_CATALOG')
|
|
1410
1410
|
ORDER BY table_schema, table_name, ordinal_position
|
|
1411
1411
|
LIMIT 2000`, [], runtimeVariables({}), connection);
|
|
1412
1412
|
return {
|
|
@@ -2196,7 +2196,7 @@ export async function startLocalServer(opts) {
|
|
|
2196
2196
|
try {
|
|
2197
2197
|
const tablesResult = await executor.executeQuery(`SELECT table_schema, table_name
|
|
2198
2198
|
FROM information_schema.tables
|
|
2199
|
-
WHERE table_schema NOT IN ('
|
|
2199
|
+
WHERE UPPER(table_schema) NOT IN ('INFORMATION_SCHEMA', 'PG_CATALOG')`, [], {}, activeConnection);
|
|
2200
2200
|
tableMapping = buildSemanticTableMapping(semanticLayer, tablesResult.rows);
|
|
2201
2201
|
}
|
|
2202
2202
|
catch {
|
|
@@ -6510,7 +6510,7 @@ export async function startLocalServer(opts) {
|
|
|
6510
6510
|
// Build table mapping: resolve semantic model names to actual DB table names
|
|
6511
6511
|
let tableMapping;
|
|
6512
6512
|
try {
|
|
6513
|
-
const tablesResult = await executor.executeQuery(`SELECT table_schema, table_name FROM information_schema.tables WHERE table_schema NOT IN ('
|
|
6513
|
+
const tablesResult = await executor.executeQuery(`SELECT table_schema, table_name FROM information_schema.tables WHERE UPPER(table_schema) NOT IN ('INFORMATION_SCHEMA', 'PG_CATALOG')`, [], {}, targetConnection);
|
|
6514
6514
|
const dbTableNames = new Set();
|
|
6515
6515
|
const schemaQualified = new Map();
|
|
6516
6516
|
for (const row of tablesResult.rows) {
|
|
@@ -6601,7 +6601,7 @@ export async function startLocalServer(opts) {
|
|
|
6601
6601
|
const driver = targetConnection.driver;
|
|
6602
6602
|
let tableMapping;
|
|
6603
6603
|
try {
|
|
6604
|
-
const tablesResult = await executor.executeQuery(`SELECT table_schema, table_name FROM information_schema.tables WHERE table_schema NOT IN ('
|
|
6604
|
+
const tablesResult = await executor.executeQuery(`SELECT table_schema, table_name FROM information_schema.tables WHERE UPPER(table_schema) NOT IN ('INFORMATION_SCHEMA', 'PG_CATALOG')`, [], {}, targetConnection);
|
|
6605
6605
|
const schemaQualified = new Map();
|
|
6606
6606
|
for (const row of tablesResult.rows) {
|
|
6607
6607
|
const schema = String(row['table_schema'] ?? '');
|
|
@@ -9313,7 +9313,7 @@ async function introspectSchema(executor, connection) {
|
|
|
9313
9313
|
try {
|
|
9314
9314
|
const catalogRows = await executor.executeQuery(`SELECT table_schema, table_name, table_type
|
|
9315
9315
|
FROM information_schema.tables
|
|
9316
|
-
WHERE table_schema NOT IN ('
|
|
9316
|
+
WHERE UPPER(table_schema) NOT IN ('INFORMATION_SCHEMA', 'PG_CATALOG')
|
|
9317
9317
|
ORDER BY table_schema, table_name`, [], {}, connection);
|
|
9318
9318
|
tables = catalogRows.rows.map((row) => {
|
|
9319
9319
|
const schema = String(row['table_schema'] ?? row['TABLE_SCHEMA'] ?? 'default');
|
|
@@ -9324,7 +9324,7 @@ async function introspectSchema(executor, connection) {
|
|
|
9324
9324
|
});
|
|
9325
9325
|
const columnRows = await executor.executeQuery(`SELECT table_schema, table_name, column_name, data_type
|
|
9326
9326
|
FROM information_schema.columns
|
|
9327
|
-
WHERE table_schema NOT IN ('
|
|
9327
|
+
WHERE UPPER(table_schema) NOT IN ('INFORMATION_SCHEMA', 'PG_CATALOG')
|
|
9328
9328
|
ORDER BY table_schema, table_name, ordinal_position`, [], {}, connection);
|
|
9329
9329
|
columnsByPath = columnRows.rows.reduce((map, row) => {
|
|
9330
9330
|
const schema = String(row['table_schema'] ?? row['TABLE_SCHEMA'] ?? 'default');
|
|
@@ -9530,7 +9530,7 @@ export async function resolveSemanticTableMapping(executor, connection, semantic
|
|
|
9530
9530
|
try {
|
|
9531
9531
|
const tablesResult = await executor.executeQuery(`SELECT table_schema, table_name
|
|
9532
9532
|
FROM information_schema.tables
|
|
9533
|
-
WHERE table_schema NOT IN ('
|
|
9533
|
+
WHERE UPPER(table_schema) NOT IN ('INFORMATION_SCHEMA', 'PG_CATALOG')
|
|
9534
9534
|
ORDER BY table_schema, table_name
|
|
9535
9535
|
LIMIT 2000`, [], {}, connection);
|
|
9536
9536
|
return buildSemanticTableMapping(semanticLayer, tablesResult.rows);
|