-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feat] improvements to duckDB column type handling (#2970)
This PR intends to preserve column types between different types of ingestion into Kepler and DuckDb - timestamps stored as strings from Arrow tables are recognized as timestamps. - apply extra metadata from table.schema.metadata (geoparquet files). - DuckDB geometry is automatically casted to WKB, and properly marked with geoarrow extensions. - DuckDB column types and query result Arrow table types consolidation. - Apply extra logic only to the last select query. - geoarrow constants to constants module - add getSampleForTypeAnalyzeArrow to support and not fail for arrow data - arrowSchemaToFields accepts extra info from DuckDB table schemas. JSON type gets GEOMETRY_FROM_STRING type, GEOMETRY with geoarrow metadata gets GEOMETRY type, timestamp ... - fix in validateInputData - check analyzerType only for current field - fix in validateInputData - support arrow input data --------- Signed-off-by: Ihor Dykhta <[email protected]>
- Loading branch information
1 parent
d30a95b
commit 221b243
Showing
20 changed files
with
715 additions
and
181 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
// SPDX-License-Identifier: MIT | ||
// Copyright contributors to the kepler.gl project | ||
|
||
export {EXTENSION_NAME} from './constants'; | ||
|
||
export {GeoArrowScatterplotLayer} from './layers/geo-arrow-scatterplot-layer'; | ||
export {GeoArrowTextLayer} from './layers/geo-arrow-text-layer'; | ||
export {GeoArrowArcLayer} from './layers/geo-arrow-arc-layer'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.