You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "James Hartig (Jira)" <ji...@apache.org> on 2024/11/22 19:02:00 UTC

[jira] [Created] (CASSGO-40) Don't skip metadata if none was returned in prepared statement

James Hartig created CASSGO-40:
----------------------------------

             Summary: Don't skip metadata if none was returned in prepared statement
                 Key: CASSGO-40
                 URL: https://issues.apache.org/jira/browse/CASSGO-40
             Project: Apache Cassandra Go driver
          Issue Type: Improvement
          Components: Core
            Reporter: James Hartig


Currently the driver defaults to skipping metadata when the query was prepared but a prepared query might return no metadata (including setting the No_metadata flag). We shouldn't skip metadata for the rows if the prepared query did not contain metadata.

This comes from Yugabyte returning no metadata for prepared queries that utilize a secondary index [0]. Without this handling users need to explicitly call NoSkipMetadata() for queries that use a secondary index or they need to disable metadata skipping for the whole cluster.

Despite encountering this using Yugabyte, this does feel like a footgun in general. I believe the desired behavior I described above does match the Java driver if my understanding of the code is correct.

[0]https://github.com/yugabyte/yugabyte-db/issues/1312



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org