kdcro101 / vscode-cassandra

Design and query Apache Cassandra database with help of generated templates, autocomplete and inline code decorations in Visual Studio Code
GNU General Public License v3.0
22 stars 6 forks source link

Not able insert UDT field values. #18

Open grylls opened 4 years ago

grylls commented 4 years ago

Describe the bug A clear and concise description of what the bug is. I was trying to insert in UDT field with frozen, but every time its throwing error. To Reproduce Steps to reproduce the behavior:

  1. Create a keyspace abc

  2. Create TYPE CREATE TYPE basic_info ( birthday timestamp, nationality text, weight text, height text );

  3. Create table CREATE TABLE cycling.cyclist_stats ( id uuid PRIMARY KEY, lastname text, basics FROZEN );

  4. INSERT INTO cyclist_stats (id, lastname, basics) VALUES ( e7ae5cf3-d358-4d99-b900-85902fda9bb0, 'FRAME', { birthday : '1993-06-18', nationality : 'New Zealand', weight : null, height : null } );

Expected behavior It should get inserted because example is from datax. Screenshots NA

System info (please complete the following information):

Additional context Add any other context about the problem here.

pabloteari commented 4 years ago

I observed the same thing. =/