Skip to content

Conversation

@anthonylouisbsb
Copy link
Contributor

This PR implements the castVARCHAR for numeric values inside the Gandiva.

It replaces the logic of the #8158 PR to change the function output to match the Java language patterns.

@github-actions
Copy link

@anthonylouisbsb
Copy link
Contributor Author

@projjal Could you close your old PR #8158?

@anthonylouisbsb anthonylouisbsb force-pushed the feature/fix-castvarchar-to-match-java-impl branch from 9a856be to 433442c Compare March 29, 2021 15:14
Copy link
Contributor

@projjal projjal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pitrou Can you review this. There are changes in arrow/util/formatting and the vendored double-conversion code.

@anthonylouisbsb anthonylouisbsb force-pushed the feature/fix-castvarchar-to-match-java-impl branch 6 times, most recently from 818027e to ede5890 Compare April 5, 2021 01:28
@anthonylouisbsb anthonylouisbsb force-pushed the feature/fix-castvarchar-to-match-java-impl branch 2 times, most recently from 58f6d74 to 6e9ec45 Compare April 7, 2021 11:55
@anthonylouisbsb anthonylouisbsb force-pushed the feature/fix-castvarchar-to-match-java-impl branch from 7e8ae59 to 24c2fbf Compare April 7, 2021 12:59
@anthonylouisbsb anthonylouisbsb force-pushed the feature/fix-castvarchar-to-match-java-impl branch 7 times, most recently from 0331750 to e167e07 Compare April 12, 2021 10:45
@anthonylouisbsb anthonylouisbsb force-pushed the feature/fix-castvarchar-to-match-java-impl branch 3 times, most recently from fcd7bb7 to e915d26 Compare April 13, 2021 12:27
@anthonylouisbsb anthonylouisbsb force-pushed the feature/fix-castvarchar-to-match-java-impl branch from e915d26 to 7df55a5 Compare April 13, 2021 19:20
@anthonylouisbsb anthonylouisbsb deleted the feature/fix-castvarchar-to-match-java-impl branch April 15, 2021 12:36
projjal added a commit to projjal/arrow that referenced this pull request Apr 21, 2021
This PR implements the castVARCHAR for numeric values inside the Gandiva.

It replaces the logic of the apache#8158 PR  to change the function output to match the Java language patterns.

Closes apache#9816 from anthonylouisbsb/feature/fix-castvarchar-to-match-java-impl and squashes the following commits:

7df55a5 <Anthony Louis> Apply formatting changes
7a724c0 <Anthony Louis> Remove unnecessary macros
4fb8a7f <Anthony Louis> Refactor if chain
e787051 <Anthony Louis> Add test to infinity case
b62b856 <Anthony Louis> Add comments for changes
cec11bb <Anthony Louis> Add tests to check Java compatibility
302139c <Anthony Louis> Add emit trailing point tests
efb94b9 <Anthony Louis> Add -0.0 inside cast test
523e60a <Anthony Louis> Add custom constructor inside the class
34f2f92 <Anthony Louis> Add class to print in formatted way
e244502 <Anthony Louis> Fix tests to consider java formatting
33bc5b2 <Projjal Chanda> added castvarchar(numeric_types) functions

Lead-authored-by: Anthony Louis <[email protected]>
Co-authored-by: Projjal Chanda <[email protected]>
Signed-off-by: Praveen <[email protected]>
kou pushed a commit that referenced this pull request Jun 9, 2023
…, remove patches (#36002)

[double-conversion v3.3.0](https://github.com/google/double-conversion/releases/tag/v3.3.0) adds a [new feature](google/double-conversion#195) that allows us to remove the special code that was added to our vendored copy of double-conversion in #9816.

This PR:
* Updates vendored double-conversion to v3.3.0
* Activates the new flags `EMIT_TRAILING_DECIMAL_POINT_IN_EXPONENTIAL` and `EMIT_TRAILING_ZERO_AFTER_POINT_IN_EXPONENTIAL`
* Removes the patches in `cpp/src/arrow/vendored/double-conversion/patches`

-----
* Closes: #35669

Authored-by: Ian Cook <[email protected]>
Signed-off-by: Sutou Kouhei <[email protected]>
pribor pushed a commit to GlobalWebIndex/arrow that referenced this pull request Oct 24, 2025
This PR implements the castVARCHAR for numeric values inside the Gandiva.

It replaces the logic of the apache#8158 PR  to change the function output to match the Java language patterns.

Closes apache#9816 from anthonylouisbsb/feature/fix-castvarchar-to-match-java-impl and squashes the following commits:

7df55a5 <Anthony Louis> Apply formatting changes
7a724c0 <Anthony Louis> Remove unnecessary macros
4fb8a7f <Anthony Louis> Refactor if chain
e787051 <Anthony Louis> Add test to infinity case
b62b856 <Anthony Louis> Add comments for changes
cec11bb <Anthony Louis> Add tests to check Java compatibility
302139c <Anthony Louis> Add emit trailing point tests
efb94b9 <Anthony Louis> Add -0.0 inside cast test
523e60a <Anthony Louis> Add custom constructor inside the class
34f2f92 <Anthony Louis> Add class to print in formatted way
e244502 <Anthony Louis> Fix tests to consider java formatting
33bc5b2 <Projjal Chanda> added castvarchar(numeric_types) functions

Lead-authored-by: Anthony Louis <[email protected]>
Co-authored-by: Projjal Chanda <[email protected]>
Signed-off-by: Praveen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants