googleapis / python-bigquery

Apache License 2.0
733 stars 299 forks source link

Add a warning in the type mapping if no conversion function is found #1988

Closed suzmue closed 1 month ago

suzmue commented 1 month ago

Is your feature request related to a problem? Please describe. Unsupported types are silently handled in order to allow for tables with column types the client library cannot handle yet. Once these types are supported, the returned type for the column is likely to change to reflect the correct handling of the type. However, this may require different code to handle from the user.

See #1587 for an example when support for json values was added.

Describe the solution you'd like Add a warning to the type mapping when the type does not have a conversion function, since the handling for this type may change: https://github.com/googleapis/python-bigquery/blob/4383cfe7c7571ffaa3efd5e45ca33c6ff978f274/google/cloud/bigquery/_helpers.py#L385