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

max_row_count in protobuf Requests should be signed int

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • None
    • avatica-1.8.0
    • avatica
    • None

    Description

      Looking at the source code, the maxRowCount is signed. And based on the code comments,
      /** Creates a result set with maxRowCount.
      *

      • <p>If {@code maxRowCount}

        is -2 (

        {@link JdbcMeta#UNLIMITED_COUNT}

        ),

      • returns an unlimited number of rows in a single frame; any other
      • negative value (typically -1) returns an unlimited number of rows
      • in frames of the default frame size. */

      we can pass -2 to return all the rows in a single batch. But the proto file define this parameter as unsigned. We need to make it consistent with the internal code.

      Attachments

        Issue Links

          Activity

            People

              elserj Josh Elser
              onpduo Duo Xu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: