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

Fix semantic issues in cast function #280

Merged
merged 6 commits into from
May 26, 2023
Merged

Conversation

PHILO-HE
Copy link
Collaborator

@PHILO-HE PHILO-HE commented May 25, 2023

This PR directly changes the code for cast function. In the future, we plan to separate the impl. for common function to respectively adapt to spark/presto semantic.

@PHILO-HE PHILO-HE merged commit 97d2829 into oap-project:main May 26, 2023
zhejiangxiaomai pushed a commit to zhejiangxiaomai/velox that referenced this pull request May 26, 2023
@liujiayi771
Copy link

@zhejiangxiaomai This PR will cause DateTimeFunctionsTest.dateFunctionVarchar and DateTimeFunctionsTest.timeZoneHour failed in main_rebase_526. We should not catch exceptions in the public methods of Presto and Spark. Presto defaults to ANSI mode and needs to throw exceptions.

@PHILO-HE
Copy link
Collaborator Author

@zhejiangxiaomai This PR will cause DateTimeFunctionsTest.dateFunctionVarchar and DateTimeFunctionsTest.timeZoneHour failed in main_rebase_526. We should not catch exceptions in the public methods of Presto and Spark. Presto defaults to ANSI mode and needs to throw exceptions.

Regarding semantic issues for common functions, we have a discussion in velox upstream: facebookincubator#4876.
We prefer to separating the impl. and discarding the use of config to control expected behaviors. But it is still not determined. So this PR just made a quick fix directly. I will track the new test failure.

zhejiangxiaomai pushed a commit to zhejiangxiaomai/velox that referenced this pull request May 31, 2023
zhejiangxiaomai added a commit to zhejiangxiaomai/velox that referenced this pull request May 31, 2023
relative pr:

Allow decimal in casting string to int oap-project#215
Add mapping from named_struct to row_constructor oap-project#214
Fix semantic issues in cast function oap-project#280
zhejiangxiaomai added a commit to zhejiangxiaomai/velox that referenced this pull request May 31, 2023
relative pr:

Allow decimal in casting string to int oap-project#215
Add mapping from named_struct to row_constructor oap-project#214
Fix semantic issues in cast function oap-project#280
zhejiangxiaomai pushed a commit to zhejiangxiaomai/velox that referenced this pull request Jun 25, 2023
zhejiangxiaomai pushed a commit to zhejiangxiaomai/velox that referenced this pull request Jun 25, 2023
zhejiangxiaomai pushed a commit to zhejiangxiaomai/velox that referenced this pull request Jun 26, 2023
zhejiangxiaomai pushed a commit to zhejiangxiaomai/velox that referenced this pull request Jun 27, 2023
zhejiangxiaomai added a commit to zhejiangxiaomai/velox that referenced this pull request Jul 3, 2023
relative pr:

Allow decimal in casting string to int oap-project#215
Add mapping from named_struct to row_constructor oap-project#214
Fix semantic issues in cast function oap-project#280
zhejiangxiaomai added a commit to zhejiangxiaomai/velox that referenced this pull request Jul 4, 2023
relative pr:

Allow decimal in casting string to int oap-project#215
Add mapping from named_struct to row_constructor oap-project#214
Fix semantic issues in cast function oap-project#280
zhejiangxiaomai added a commit to zhejiangxiaomai/velox that referenced this pull request Jul 11, 2023
relative pr:

Allow decimal in casting string to int oap-project#215
Add mapping from named_struct to row_constructor oap-project#214
Fix semantic issues in cast function oap-project#280
zhejiangxiaomai added a commit to zhejiangxiaomai/velox that referenced this pull request Jul 12, 2023
relative pr:

Allow decimal in casting string to int oap-project#215
Add mapping from named_struct to row_constructor oap-project#214
Fix semantic issues in cast function oap-project#280
zhejiangxiaomai added a commit to zhejiangxiaomai/velox that referenced this pull request Jul 12, 2023
relative pr:

Allow decimal in casting string to int oap-project#215
Add mapping from named_struct to row_constructor oap-project#214
Fix semantic issues in cast function oap-project#280
zhejiangxiaomai added a commit to zhejiangxiaomai/velox that referenced this pull request Jul 17, 2023
relative pr:

Allow decimal in casting string to int oap-project#215
Add mapping from named_struct to row_constructor oap-project#214
Fix semantic issues in cast function oap-project#280
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants