java-driver icon indicating copy to clipboard operation
java-driver copied to clipboard

4.x: Implement PartitionerMap

Open dkropachev opened this issue 10 months ago • 0 comments

Since in scylla CDC tables should get cdc partitioner instead default one, we need something that would hold that partitioner information and provide it upon request. Currently it is done in inderect way at https://github.com/scylladb/java-driver/blob/cf9f8f05a20db5033311ff1d5e88dbc124ae1c12/core/src/main/java/com/datastax/oss/driver/internal/core/cql/Conversions.java#L390

Which creates unnecessary confusion, to get rid of which we need an instance with following API available at metadata level:

public interface PartitionerMap {
  public Partitioner DefaultPartitioner();
  
  public Partitioner GetTablePartitioner(CqlIdentifier ks, CqlIdentifier table);
}

When it is done we need to get rid of prepared statement partitioner hack.

dkropachev avatar Apr 07 '25 04:04 dkropachev