Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add int32 support and change format of castVarchar #26

Merged
merged 2 commits into from
Jul 15, 2021

Conversation

rui-mo
Copy link

@rui-mo rui-mo commented Jul 5, 2021

@github-actions
Copy link

github-actions bot commented Jul 5, 2021

Thanks for opening a pull request!

If this is not a minor PR. Could you open an issue for this pull request on JIRA? https://issues.apache.org/jira/browse/ARROW

Opening JIRAs ahead of time contributes to the Openness of the Apache Arrow project.

Then could you also rename pull request title in the following format?

ARROW-${JIRA_ID}: [${COMPONENT}] ${SUMMARY}

or

MINOR: [${COMPONENT}] ${SUMMARY}

See also:

@rui-mo rui-mo changed the title add support to int32 type Add support to int32 type on date functions Jul 5, 2021
@rui-mo rui-mo changed the title Add support to int32 type on date functions Add support to int32 type on timestamp functions Jul 5, 2021
@rui-mo rui-mo changed the title Add support to int32 type on timestamp functions Add int32 support and change format of castVarchar Jul 12, 2021
@rui-mo
Copy link
Author

rui-mo commented Jul 12, 2021

TPC-DS q12 on double dataset:
Before fix:
Screenshot from 2021-07-12 17-13-29
After fix:
Screenshot from 2021-07-12 17-14-32

CAST_UNARY_UTF8(castVARCHAR, float32, utf8, "%g", NOFMT, nothing)
CAST_UNARY_UTF8(castVARCHAR, float64, utf8, "%g", NOFMT, nothing)
CAST_UNARY_UTF8(castVARCHAR, float32, utf8, "%.*f", FMT, FLT_DIG)
CAST_UNARY_UTF8(castVARCHAR, float64, utf8, "%.*f", FMT, DBL_DIG)
Copy link
Author

Choose a reason for hiding this comment

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

@zhouyuan Please take a look at this, thanks!

Copy link
Collaborator

Choose a reason for hiding this comment

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

can you please make a note here? this is required as Spark has some different behavior as gandiva

Copy link
Author

Choose a reason for hiding this comment

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

note was added

@zhouyuan zhouyuan merged commit b8bb16a into oap-project:arrow-4.0.0-oap Jul 15, 2021
zhztheplayer pushed a commit that referenced this pull request Feb 28, 2022
* add support to int32 type

* fix fortmat of cast varchar
zhztheplayer pushed a commit that referenced this pull request Mar 15, 2022
* add support to int32 type

* fix fortmat of cast varchar
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