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

Add protocol version to Avatica protocol

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • avatica

    Description

      Add protocol version to Avatica protocol, to allow forwards and backwards compatibility.

      The first request should be a CreateConnectionRequest, let's add the attributes there. I propose:

      • CreateConnectionRequest.requestedProtocolType e.g. "json"
      • CreateConnectionRequest.requestedProtocolVersion e.g. "1.2.0"
      • CreateConnectionRequest.driverVersion
      • CreateConnectionRequest.driverName e.g. "org.apache.calcite.avatica.remote.Driver"
      • CreateConnectionResponse.protocolType
      • CreateConnectionResponse.protocolVersion
      • CreateConnectionResponse.databaseVersion

      There is currently no CreateConnectionRequest.

      Edit (Julian Hyde, 2015-10-24): No longer true. OpenConnectionRequest was implemented in CALCITE-912.

      Certain servers configurations would continue to allow connections to be implicitly created, but using an explicit CreateConnectionRequest would always be possible.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              julianhyde Julian Hyde
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: