Giter Club home page Giter Club logo

Comments (6)

hemidactylus avatar hemidactylus commented on August 11, 2024 2

In the meantime @phact has brilliantly found a workaround:

-query 'SELECT row_id, attributes_blob, body_blob, metadata_s, \"vector\" FROM poc_data.product_table'

from dsbulk.

pravinbhat avatar pravinbhat commented on August 11, 2024 1

Adding details for the insert workaround as well as its a bit tricky
-query 'insert into <ks>.<table> (row_id, attributes_blob, body_blob, metadata_s, \"vector\") values (:row_id, :attributes_blob, :body_blob, :metadata_s, :\"vector\")'

from dsbulk.

msmygit avatar msmygit commented on August 11, 2024

We probably also need to test for other similar cases like if the table name is also same as the cql data type like below:

token@cqlsh:correctness> create table int(int int primary key);
token@cqlsh:correctness> desc tables;

int  vector

token@cqlsh:correctness> desc table int;

CREATE TABLE correctness.int (
    int int PRIMARY KEY
);

from dsbulk.

absurdfarce avatar absurdfarce commented on August 11, 2024

Agreed @msmygit . My guess is that I got something in the CQL parser code, specifically we're trying to pull out some kind of non-keyword token and failing miserably.

Any fix to this ticket should involve a test to validate that we've addressed the issue generally.

from dsbulk.

hemidactylus avatar hemidactylus commented on August 11, 2024

I have checked with INT and TEXT and ... they work just fine. So it seems it's something with vector specifically.

java -jar dsbulk-1.11.0.jar unload -k ... -t a1 -u "token" -p ... -b ...

Username and password provided but auth provider not specified, inferring PlainTextAuthProvider
A cloud secure connect bundle was provided: ignoring all explicit contact points.
Operation directory: ...

int
12
11
10
total | failed | rows/s |  p50ms |  p99ms | p999ms
    3 |      0 |      2 | 119.80 | 121.11 | 121.11
Operation UNLOAD_20230928-155343-102056 completed successfully in 1 second.
Checkpoints for the current operation were written to checkpoint.csv.
To resume the current operation, re-run it with the same settings, and add the following command line flag:
--dsbulk.log.checkpoint.file=...

java -jar dsbulk-1.11.0.jar unload -k ... -t a2 -u "token" -p ... -b ...

Username and password provided but auth provider not specified, inferring PlainTextAuthProvider
A cloud secure connect bundle was provided: ignoring all explicit contact points.
Operation directory: ...

text
t3
t1
t2
total | failed | rows/s |  p50ms |  p99ms | p999ms
    3 |      0 |      2 | 119.63 | 120.59 | 120.59
Operation UNLOAD_20230928-155431-632878 completed successfully in 1 second.
Checkpoints for the current operation were written to checkpoint.csv.
To resume the current operation, re-run it with the same settings, and add the following command line flag:
--dsbulk.log.checkpoint.file=...

from dsbulk.

pravinbhat avatar pravinbhat commented on August 11, 2024

I got the same above issue with the vector column named as vector. Some of our libraries names the vector column as such, so that makes it imp to address this issue.

from dsbulk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.