Uploaded image for project: 'Apache Cassandra'
  1. Apache Cassandra
  2. CASSANDRA-20096

sstableloader fails for tables containing vector columns but return code is 0

    XMLWordPrintableJSON

Details

    • Correctness
    • Normal
    • Normal
    • User Report
    • All
    • None

    Description

      For Apache Cassandra 5.0, sstableloader fails to load data into a table which has vector columns but still returns 0.

      ERROR 07:34:38,796 Error parsing schema for table cycling.comments_vs: Cluster.getMetadata().getKeyspace("cycling").getTable("comments_vs") will be missing or incomplete
      java.lang.IllegalArgumentException: Could not parse type name vector<float, 5>
      	at com.datastax.driver.core.DataTypeCqlNameParser.parse(DataTypeCqlNameParser.java:233)
      	at com.datastax.driver.core.TableMetadata.build(TableMetadata.java:311)
      	at com.datastax.driver.core.SchemaParser.buildTables(SchemaParser.java:302)
      	at com.datastax.driver.core.SchemaParser.buildKeyspaces(SchemaParser.java:203)
      	at com.datastax.driver.core.SchemaParser.refresh(SchemaParser.java:109)
      	at com.datastax.driver.core.ControlConnection.refreshSchema(ControlConnection.java:417)
      	at com.datastax.driver.core.ControlConnection.tryConnect(ControlConnection.java:324)
      	at com.datastax.driver.core.ControlConnection.reconnectInternal(ControlConnection.java:235)
      	at com.datastax.driver.core.ControlConnection.connect(ControlConnection.java:109)
      	at com.datastax.driver.core.Cluster$Manager.negotiateProtocolVersionAndConnect(Cluster.java:1813)
      	at com.datastax.driver.core.Cluster$Manager.init(Cluster.java:1726)
      	at com.datastax.driver.core.Cluster.init(Cluster.java:214)
      	at com.datastax.driver.core.Cluster.connectAsync(Cluster.java:387)
      	at com.datastax.driver.core.Cluster.connectAsync(Cluster.java:366)
      	at com.datastax.driver.core.Cluster.connect(Cluster.java:311)
      	at org.apache.cassandra.utils.NativeSSTableLoaderClient.init(NativeSSTableLoaderClient.java:70)
      	at org.apache.cassandra.io.sstable.SSTableLoader.stream(SSTableLoader.java:197)
      	at org.apache.cassandra.tools.BulkLoader.load(BulkLoader.java:92)
      	at org.apache.cassandra.tools.BulkLoader.main(BulkLoader.java:58)

      Summary shows 0 bytes transferred.

      Summary statistics: 
         Connections per host    : 1         
         Total files transferred : 0         
         Total bytes transferred : 0B        
         Total duration          : 3278 ms   
         Average transfer rate   : 0.000B/s 
         Peak transfer rate      : 0B/s  

       

      Update 11/27/2024
      Important Observation:

      When I tried the above bulkload, there was another table in my cassandra-cluster in which one of the columns was a UDT containing a vector type. After dropping that table and UDT, bulkload worked.

      Attachments

        Activity

          People

            Unassigned Unassigned
            aanvit Aniket Anvit
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: