Giter Club home page Giter Club logo

Comments (5)

dorlaor avatar dorlaor commented on May 18, 2024

This is the schema for it (to load using cqlsh):
CREATE KEYSPACE examples
WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1};

USE examples;

CREATE TABLE songs (
id uuid PRIMARY KEY,
title text,
album text,
artist text,
tags set,
data blob
);

from scylladb.

vladzcloudius avatar vladzcloudius commented on May 18, 2024

client side:
cqlsh> CREATE KEYSPACE examples
... WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1};
cqlsh>
cqlsh> USE examples;
cqlsh:examples>
cqlsh:examples> CREATE TABLE songs (
... id uuid PRIMARY KEY,
... title text,
... album text,
... artist text,
... tags set,
... data blob
... );
SyntaxException: <ErrorMessage code=2000 [Syntax error in CQL query] message="Failed parsing statement: [CREATE TABLE songs (
id uuid PRIMARY KEY,
title text,
album text,
artist text,
tags set,
data blob
);] reason: : syntax error...
">

Server side:
...
Seastar HTTP server listening on 127.1.11.1:10000 ...
WARNING: Not implemented: AUTH
warning: ignoring event registration
WARNING: Not implemented: METRICS
WARNING: Not implemented: PERMISSIONS
WARNING: Not implemented: PAGING
[shard 0] query_processor - The statement: CREATE TABLE songs (
id uuid PRIMARY KEY,
title text,
album text,
artist text,
tags set,
data blob
); could not be parsed: : syntax error...

from scylladb.

vladzcloudius avatar vladzcloudius commented on May 18, 2024

In CREATE TABLE statement in 'tags' column definition 'set' should have an elements' type definition, e.g. set.

from scylladb.

dorlaor avatar dorlaor commented on May 18, 2024

The exact cut&paste string is here: https://github.com/cloudius-systems/urchin/wiki/Using-example-perf.c-from-the-cpp-driver

from scylladb.

vladzcloudius avatar vladzcloudius commented on May 18, 2024

The exceptional future that had been ignored was the one stored in _ready_to_respond. The solution is to return it from transport::cql_server::connection::process().
The appropriate patch has been committed to the master: commit 86e28bb

from scylladb.

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.