[ 
https://issues.apache.org/jira/browse/BEAM-10900?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17196555#comment-17196555
 ] 

Monica Song commented on BEAM-10900:
------------------------------------

Since the python sdk does not support deterministic coding for numpy data, the 
description in the bug is a special use case. It makes more sense for the user 
to convert their input into a native python type instead. 

> stats.ApproximateUniqueCombineFn should handle numpy array
> ----------------------------------------------------------
>
>                 Key: BEAM-10900
>                 URL: https://issues.apache.org/jira/browse/BEAM-10900
>             Project: Beam
>          Issue Type: Bug
>          Components: sdk-py-core
>            Reporter: Monica Song
>            Assignee: Monica Song
>            Priority: P1
>          Time Spent: 1h 50m
>  Remaining Estimate: 0h
>
> stats.ApproximateUniqueCombineFn uses DeterministicFastPrimitivesCoder to 
> encode input data. DeterministicFastPrimitivesCoder only accepts python data 
> types and iterables, so numpy data types throw an error. 



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

Reply via email to