Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-10900

stats.ApproximateUniqueCombineFn should handle numpy array

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: P2
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: sdk-py-core
    • Labels:

      Description

      stats.ApproximateUniqueCombineFn uses DeterministicFastPrimitivesCoder to encode input data. DeterministicFastPrimitivesCoder only accepts python data types and iterables, so numpy data types throw an error. 

      Edit: for more detail, with numpy data, the coder registry assigns PickleCoder which returns DeterministicFastPrimitivesCoder when calling PickleCoder.as_deterministic_coder

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                monicadsong Monica Song
                Reporter:
                monicadsong Monica Song
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h
                  2h