liferoad commented on issue #29622:
URL: https://github.com/apache/beam/issues/29622#issuecomment-3000724219

   This can trigger this error as well:
   ```
   import apache_beam as beam
   from apache_beam.options.pipeline_options import PipelineOptions
   import datetime
   import pytz
   
   def create_data():
       return [
           {
               "str": "hello",
               "ts": datetime.datetime(1970, 1, 1, tzinfo=pytz.utc)
           },
           {
               "str": 999999999999999999999999,
               "ts": datetime.datetime(1970, 1, 1, tzinfo=pytz.utc)
           }
       ]
   
   def run():
       options = PipelineOptions(
       project='cts10-kumarreddyg',
       region='us-central1',
       temp_location='gs://naveen123/temp',
       runner='DataflowRunner',
       
service_account_email='id-20207358358-compute-dev-...@cts10-kumarreddyg.iam.gserviceaccount.com'
 
       )
   
       with beam.Pipeline(options=options) as p:
           (
               p
               | 'CreateData' >> beam.Create(create_data())
               | 'WriteToBigQuery' >> beam.io.WriteToBigQuery(
                   table='cts10-kumarreddyg.naveen.testerror',
                   schema='str:STRING,ts:TIMESTAMP',
                   method='STREAMING_INSERTS',
                   
create_disposition=beam.io.BigQueryDisposition.CREATE_IF_NEEDED,
                   write_disposition=beam.io.BigQueryDisposition.WRITE_APPEND
               )
           )
   
   if __name__ == '__main__':
       run()
   #"str": str(999999999999999999999999)
   ```


-- 
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.

To unsubscribe, e-mail: github-unsubscr...@beam.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to