Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-4144

[Java] Arrow-to-JDBC

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Java
    • None

    Description

      ARROW-1780 reads a query from a JDBC data source and converts the ResultSet to an Arrow VectorSchemaRoot.  However, there is no built-in adapter for writing an Arrow VectorSchemaRoot back to the database.

      ARROW-3966 adds JDBC field metadata:

      • The Catalog Name
      • The Table Name
      • The Field Name
      • The Field Type

      We can use this information to ask for the field information from the database via the DatabaseMetaData object.  We can then create INSERT or UPDATE statements based on the list of primary keys in the table:

      • If the value in the VectorSchemaRoot corresponding to the primary key is NULL, insert that record into the database.
      • If the value in the VectorSchemaRoot corresponding to the primary key is not NULL, update the existing record in the database.

      We can also perform the same data conversion in reverse based on the field types queried from the database.

      Attachments

        Activity

          People

            Unassigned Unassigned
            rpimike1022 Michael Pigott
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated: