Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.
[CHORE] disable auto lyaer creation based on color by int column (#3049)
Shan He52a2d2a2b27d
diff --git a/src/duckdb/src/table/duckdb-table-utils.ts b/src/duckdb/src/table/duckdb-table-utils.tsindex 1c8274f00..22c762e83 100644--- a/src/duckdb/src/table/duckdb-table-utils.ts+++ b/src/duckdb/src/table/duckdb-table-utils.ts@@ -31,7 +31,7 @@ export async function getDuckDBColumnTypes(connection: DatabaseConnection,tableName: string): Promise<DuckDBColumnDesc[]> {- const resDescribe = await connection.query(`DESCRIBE "${tableName}";`);+ const resDescribe = await connection.query(`DESCRIBE "${tableName}"`);const duckDbTypes: DuckDBColumnDesc[] = [];const numRows = resDescribe.numRows;@@ -74,7 +74,7 @@ export function constructST_asWKBQuery(tableName: string, columnsToConvertToWKB:columnsToConvertToWKB.length > 0? `, ${columnsToConvertToWKB.map(column => `ST_AsWKB(${column}) as ${column}`).join(', ')}`: '';- return `SELECT * ${exclude} ${asWKB} FROM '${tableName}';`;+ return `SELECT * ${exclude} ${asWKB} FROM '${tableName}'`;}/**diff --git a/src/utils/src/dataset-utils.ts b/src/utils/src/dataset-utils.tsindex d269c7e6f..39c94066e 100644--- a/src/utils/src/dataset-utils.ts+++ b/src/utils/src/dataset-utils.ts@@ -159,7 +159,7 @@ export function findDefaultColorField({fieldPairs: FieldPair[];}): null | Field {const fieldsWithoutExcluded = fields.filter(field => {- if (field.type !== ALL_FIELD_TYPES.real && field.type !== ALL_FIELD_TYPES.integer) {+ if (field.type !== ALL_FIELD_TYPES.real) {// Only select numeric fields.return false;}