apache/beam

No python equivalent of org.apache.beam.sdk.transforms.Sample.any(100)?

Chiusa

#18.552 aperta il 3 giu 2022

 (0 commenti) (0 reazioni) (0 assegnatari)Java (4097 fork)batch import
P3coregood first issueimprovementpython

Metriche repository

Star
 (7313 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

Java's org.apache.beam.sdk.transforms.Sample.any will return a PCollection with bounded size (filtering strategy). The closest python eqiuvalent is beam.Sample.FixedSizeGlobally(n) whover, this version uses a combiner strategy, returning a list with n elements; which does not scale if n is "bigger than what fits in memory".

Imported from Jira BEAM-3000. Original Jira may contain additional context. Reported by: rodrigob.

Guida contributor