pabloem commented on a change in pull request #12916:
URL: https://github.com/apache/beam/pull/12916#discussion_r499021934



##########
File path: sdks/python/apache_beam/examples/snippets/snippets.py
##########
@@ -1179,6 +1179,19 @@ def model_bigqueryio(p, write_project='', 
write_dataset='', write_table=''):
       write_disposition=beam.io.BigQueryDisposition.WRITE_TRUNCATE,
       create_disposition=beam.io.BigQueryDisposition.CREATE_IF_NEEDED)
   # [END model_bigqueryio_write]
+  
+  # [START model_bigqueryio_write_dynamic_input]
+  table_names = (p | beam.Create([
+      ('error', 'my_project.dataset1.error_table_for_today'),
+      ('user_log', 'my_project.dataset1.query_table_for_today'),
+  ])

Review comment:
       also, if you feel up to it, the same document users table partitioning : 
) - do you think you could add a snippet for that?
   
   It would look something like this:
   ```
           bq_output = input
               | beam.io.WriteToBigQuery(
                   (TABLE something something),
                   additional_bq_parameters={'timePartitioning': {'type': 
'HOUR'}})
   ```
   
   That's not a must. Only if you feel up to it : )




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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to