[ 
https://issues.apache.org/jira/browse/BEAM-9890?focusedWorklogId=452625&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-452625
 ]

ASF GitHub Bot logged work on BEAM-9890:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 29/Jun/20 20:54
            Start Date: 29/Jun/20 20:54
    Worklog Time Spent: 10m 
      Work Description: amaliujia opened a new pull request #12122:
URL: https://github.com/apache/beam/pull/12122


   Reverts apache/beam#12079
   
   
   
   It turns out that on direct runner, NULL will not be passed to CombineFn 
thus all NULL inputs are ignored. And then if there is any non-null inputs, 
bit_and will be applied on them only, which leads to a non-null result, which 
is not correct.
   
   Before we can figure out the root cause and propose a fix, we should revert 
this implementation. 


----------------------------------------------------------------
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: 452625)
    Time Spent: 3h 50m  (was: 3h 40m)

> Support BIT_AND aggregation function in BeamSQL
> -----------------------------------------------
>
>                 Key: BEAM-9890
>                 URL: https://issues.apache.org/jira/browse/BEAM-9890
>             Project: Beam
>          Issue Type: Task
>          Components: dsl-sql, dsl-sql-zetasql
>            Reporter: Rui Wang
>            Assignee: Yuwei Fu
>            Priority: P2
>              Labels: starter
>             Fix For: Not applicable
>
>          Time Spent: 3h 50m
>  Remaining Estimate: 0h
>
> Performs a bitwise AND operation on expression and returns the result.
> Supported Argument Types: INT64
> Returned Data Types: INT64
> Examples
> {code:sql}
> SELECT BIT_AND(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_and



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to