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

Equivalent to withNumFileShards() in Python as it is in Java

Details

    • Bug
    • Status: Open
    • P3
    • Resolution: Unresolved
    • None
    • None
    • io-py-gcp
    • None
    • Python Streaming Cloud Dataflow Pipeline
    • Important

    Description

      We would like to have an equivalent of withNumFileShards() in Python as well

      .apply("WriteInBigQueryLoad", BigQueryIO.writeTableRows().to(tableLowUrgency)
      .withSchema(schema)
      .withMethod(Method.FILE_LOADS)
      .withTriggeringFrequency(Duration.standardMinutes(2))
      .withNumFileShards(1)
      .withCreateDisposition(BigQueryIO.Write.CreateDisposition.CREATE_IF_NEEDED)
      .withWriteDisposition(BigQueryIO.Write.WriteDisposition.WRITE_APPEND))

      transformed | 'Write' >> beam.io.WriteToBigQuery(
      known_args.target_table,
      schema=schema,
      create_disposition=beam.io.BigQueryDisposition.CREATE_IF_NEEDED,
      write_disposition=beam.io.BigQueryDisposition.WRITE_APPEND,
      method=beam.io.WriteToBigQuery.Method.FILE_LOADS,
      triggering_frequency=5
      )

      Attachments

        Activity

          People

            Unassigned Unassigned
            sdominique Steeve
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: