Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-4956

calcite-avatica-go should post info when open connection

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • avatica-go-5.0.0
    • 1.32.0
    • avatica-go
    • None

    Description

      see https://calcite.apache.org/avatica/docs/json_reference.html#openconnectionrequest
      for openconnection request we can set info that is some key-value pairs .but for avatica-go we do not get the chance to post the info, though https://github.com/apache/calcite-avatica-go/blob/master/driver.go#L88 the code do set some info but after seeing the code https://github.com/apache/calcite-avatica-go/blob/master/driver.go#L61 we will know the info is nil, so the info will never be posted.

      after reviewing the database/sql of go's source code, I found that the https://github.com/apache/calcite-avatica-go/blob/master/driver.go#L60 NewConnector will only go one input paramters that is dsn ,so if we want to post some info ,it is useless.

      Attachments

        Activity

          People

            francischuang Francis Chuang
            maxwellguo Maxwell Guo
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: