Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-12693

WriteToJdbc does not respect 'statement' parameter in python

Details

    • Bug
    • Status: Open
    • P3
    • Resolution: Unresolved
    • 2.31.0
    • None
    • io-java-jdbc, io-py-common
    • None
    • Important

    Description

      I need to insert geometry into my postgresql database. My pipeline stage is a follows;

      // code placeholder
      | 'Write jdbc' >> WriteToJdbc(                  jdbc_url='jdbc:postgresql://localhost:5432/postgre',                    driver_class_name='org.postgresql.Driver', table_name='test',                username='postgres', password='postgres',
      statement="""INSERT INTO test
      VALUES(?, ?, ?, ST_GeomFromText(?), ?, ?, ?, ?, ?, ?)"""
      

      I expect this code to write data to database and cast my text into geometry type while inserting. But it does not work.
       

      Attachments

        Activity

          People

            Unassigned Unassigned
            egeucak ege ucak
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: