File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
sdks/python/apache_beam/yaml Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 2525
2626import apache_beam as beam
2727from apache_beam .io .filesystems import FileSystems
28+ # The following imports force the registration of JDBC logical types.
29+ # When running a Beam YAML pipeline, the expansion service handles JDBCIO using
30+ # Java transforms, bypassing the Python module (`apache_beam.io.jdbc`) that
31+ # registers these types. These imports load the module, preventing a
32+ # "logical type not found" error.
33+ from apache_beam .io .jdbc import JdbcDateType # pylint: disable=unused-import
34+ from apache_beam .io .jdbc import JdbcTimeType # pylint: disable=unused-import
2835from apache_beam .transforms import resources
2936from apache_beam .yaml import yaml_testing
3037from apache_beam .yaml import yaml_transform
You can’t perform that action at this time.
0 commit comments