Skip to content

[CALCITE-3013] support CeilFuncBigInt <BIGINT> TO <TIME_UNIT>#1178

Closed
xy2953396112 wants to merge 1 commit intoapache:masterfrom
xy2953396112:ceilForBigInt
Closed

[CALCITE-3013] support CeilFuncBigInt <BIGINT> TO <TIME_UNIT>#1178
xy2953396112 wants to merge 1 commit intoapache:masterfrom
xy2953396112:ceilForBigInt

Conversation

@xy2953396112
Copy link
Contributor

No description provided.

@xy2953396112 xy2953396112 changed the title support CeilFuncBigInt <BIGINT> TO <TIME_UNIT> CALCITE-3013 support CeilFuncBigInt <BIGINT> TO <TIME_UNIT> Apr 21, 2019
@xy2953396112 xy2953396112 changed the title CALCITE-3013 support CeilFuncBigInt <BIGINT> TO <TIME_UNIT> [CALCITE-3013] support CeilFuncBigInt <BIGINT> TO <TIME_UNIT> Apr 21, 2019
@xy2953396112
Copy link
Contributor Author

xy2953396112 commented May 8, 2019

cc @dynamix @mikehinchey @smola for review

@julianhyde
Copy link
Contributor

I don't see a need for this function. The SQL standard tries hard to maintain the abstraction that datetime values are NOT just milliseconds since 1970 (and it succeeds).

If you want to add a user-defined function (not in Calcite) you can do it. It you do it right it will probably optimize to a few machine instructions.

Let's continue discussion at https://issues.apache.org/jira/browse/CALCITE-3013 rather than in github.

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