Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-9362 Native protocol v5
  3. CASSANDRA-11466

Add Dynamic Type to the Native Protocol

    XMLWordPrintableJSON

    Details

      Description

      There are several cases where the native protocol limits our ability to support functions due to argument or result types that are only known at execution time. For example, we can't support fromJson() in the selection clause or toJson() outside of the selection clause.

      To support these functions and other use cases, we should add a dynamic type to the native protocol. The serialization format for this would be a <type> field (i.e. a numeric typecode, as defined in the native protocol spec) followed by the serialized value. When deserializing values, drivers would first read the typecode to determine the type, then decode the remainder of the bytes accordingly. How this type information is exposed to the end user is up to the driver authors.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              thobbs Tom Hobbs
            • Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

              • Created:
                Updated: