forked from arrow-udf/arrow-udf
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve databend compatability (arrow-udf#22)
* feat(arrow-udf-js): enable all intrinsics, enhance supported types and allow for alternate extension key/values - enables all rquickjs intrinsics - allows for configurable arrow extension keys and values. It is not always practical to rebuild an already created record batch to add the field metadata values required by arrow-udf, so this makes them optionally configurable - adds support for JSON in LargeBinary arrays for Databend compatibility - adds support for Timestamp and Date32 arrow types as Date() type in JS for Databend compatibility - adds support Decimal128 and Decimal256 arrow types as BigDecimal in JS for Databend compatibility - simplifies bigdecimal conversion by using `ctx.globals().get("BigDecimal")?` to access BigDecimal initializer function rather than holding a BigDecimal persistent function handle on the runtime * feat(arrow-udf-python): add alternate extension name and json in LargeBinary support * feat(arrow-udf-js-deno): add alternate extension name and json in LargeBinary support * chore: update readme * chore(arrow-udf-js): cargo fmt * chore(arrow-udf-js): refactor decimal128/256 parsing - Prefer split_once over split for splitting decimal string into integer and fractional parts. - Prefer pattern matching style over more imperative approach. * chore: cargo fmt
- Loading branch information
Showing
10 changed files
with
2,055 additions
and
1,285 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
Large diffs are not rendered by default.
Oops, something went wrong.
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.