Valentyn Tymofieiev created BEAM-7686:
-----------------------------------------
Summary: Erroneous Beam Deprecation warnings are confusing
Bigquery IO users.
Key: BEAM-7686
URL: https://issues.apache.org/jira/browse/BEAM-7686
Project: Beam
Issue Type: Improvement
Components: io-python-gcp
Reporter: Valentyn Tymofieiev
Bigquery sink is marked deprecated:
https://github.com/apache/beam/blob/32e2e3e910619d400568073dde0d7b36698a416a/sdks/python/apache_beam/io/gcp/bigquery.py#L499,
however it is used by Dataflow runner in codepath that processes
WriteToBigQuery
https://github.com/apache/beam/blob/32e2e3e910619d400568073dde0d7b36698a416a/sdks/python/apache_beam/runners/dataflow/dataflow_runner.py#L680.
This generates a warning message for all BQ users, including those who use
WriteToBigQuery: "Warning: BigQuerySink is deprecated since 2.11.0. Use
WriteToBigQuery instead".
This message is a red herring and confuses BQ users.
One possibility to address this is to make BigQuerySink an alias for
_BigQuerySink, and use _BigQuerySink internally.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)