[
https://issues.apache.org/jira/browse/BEAM-9984?focusedWorklogId=434586&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-434586
]
ASF GitHub Bot logged work on BEAM-9984:
----------------------------------------
Author: ASF GitHub Bot
Created on: 18/May/20 19:55
Start Date: 18/May/20 19:55
Worklog Time Spent: 10m
Work Description: amaliujia commented on a change in pull request #11737:
URL: https://github.com/apache/beam/pull/11737#discussion_r426859930
##########
File path:
sdks/java/extensions/sql/zetasql/src/test/java/org/apache/beam/sdk/extensions/sql/zetasql/ZetaSQLDialectSpecTest.java
##########
@@ -4500,6 +4499,23 @@ public void testIsNullTrueFalse() {
pipeline.run().waitUntilFinish(Duration.standardMinutes(PIPELINE_EXECUTION_WAITTIME_MINUTES));
}
+ @Test
+ public void testZetaSQLBitOr() {
Review comment:
Nice! Surprisingly you can figure out how to enable this function in
ZetaSQL dialect!
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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: 434586)
Time Spent: 1h 20m (was: 1h 10m)
> Support BIT_OR aggregation function in Beam SQL
> -----------------------------------------------
>
> Key: BEAM-9984
> URL: https://issues.apache.org/jira/browse/BEAM-9984
> Project: Beam
> Issue Type: Task
> Components: dsl-sql, dsl-sql-zetasql
> Reporter: Kenneth Knowles
> Assignee: Omar Ismail
> Priority: P2
> Labels: starter
> Time Spent: 1h 20m
> Remaining Estimate: 0h
>
> Performs a bitwise OR operation on expression and returns the result.
> Supported Argument Types: INT64
> Returned Data Types: INT64
> Examples
> {code:sql}
> SELECT BIT_OR(c) as bit_and FROM UNNEST([0xF001, 0x00A1]) as c;
> +---------+
> | bit_and |
> +---------+
> | 1 |
> +---------+
> {code}
> What is expected: should include both Calcite and ZetaSQL dialects.
> How to test: unit tests
> Reference:
> https://cloud.google.com/bigquery/docs/reference/standard-sql/aggregate_functions#bit_or
--
This message was sent by Atlassian Jira
(v8.3.4#803005)