[
https://issues.apache.org/jira/browse/BEAM-5112?focusedWorklogId=178757&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-178757
]
ASF GitHub Bot logged work on BEAM-5112:
----------------------------------------
Author: ASF GitHub Bot
Created on: 26/Dec/18 19:42
Start Date: 26/Dec/18 19:42
Worklog Time Spent: 10m
Work Description: akedin commented on pull request #6417: [BEAM-5112] Use
Calcite codegen to implement BeamCalcRel
URL: https://github.com/apache/beam/pull/6417#discussion_r244036255
##########
File path:
sdks/java/extensions/sql/src/test/java/org/apache/beam/sdk/extensions/sql/BeamSqlDslSqlStdOperatorsTest.java
##########
@@ -1047,7 +1046,9 @@ public void testTruncate() {
@SqlOperatorTest(name = "RAND", kind = "OTHER_FUNCTION")
public void testRand() {
ExpressionChecker checker =
- new ExpressionChecker().addExpr("RAND(c_integer)", new
Random(INTEGER_VALUE).nextDouble());
+ new ExpressionChecker()
+ .addExpr(
+ "RAND(c_integer)", new Random(INTEGER_VALUE ^ (INTEGER_VALUE
<< 16)).nextDouble());
Review comment:
So Beam SQL rand is always initialized with the same seed? Is this what we
want?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 178757)
> Investigate if Calcite can generate functions that we need
> ----------------------------------------------------------
>
> Key: BEAM-5112
> URL: https://issues.apache.org/jira/browse/BEAM-5112
> Project: Beam
> Issue Type: Sub-task
> Components: dsl-sql
> Reporter: Rui Wang
> Assignee: Andrew Pilloud
> Priority: Major
> Time Spent: 3h 10m
> Remaining Estimate: 0h
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)