edgedb-cli icon indicating copy to clipboard operation
edgedb-cli copied to clipboard

Got Unimplemented input type when running queries with cal type variables in interactive shell

Open hwmrocker opened this issue 4 years ago • 5 comments

  • EdgeDB CLI Version: 1.0.0-rc.2
  • EdgeDB Version: edgedb/edgedb:1-rc2
  • OS Version: arch linux

Steps to Reproduce:

  1. edgedb -I ...
  2. run the following queries
Unimplemented input type 00000000-0000-0000-0000-00000000010c
edgedb> SELECT (<cal::local_datetime>$foo);
Unimplemented input type 00000000-0000-0000-0000-00000000010b
edgedb> SELECT (<cal::local_time>$foo);
Unimplemented input type 00000000-0000-0000-0000-00000000010d
edgedb> SELECT (<cal::local_date>"2021-11-11");
{<cal::local_date>'2021-11-11'}

You cant test queries with variables of cal type, you can hard code the values though.

hwmrocker avatar Nov 17 '21 05:11 hwmrocker

@fantix were you working on this?

1st1 avatar Nov 23 '21 18:11 1st1

@fantix were you working on this?

Nope, but I’ll check early tmr morning

fantix avatar Nov 24 '21 01:11 fantix

Ah it's simply not implemented. Let me try implement the remaining types.

fantix avatar Nov 24 '21 16:11 fantix

I'm running into the same with <datetime>:

edgedb> insert Task {dueAt := <datetime>$dueAt, title:= <str>$title, assignees:= (select User)};
Unimplemented input type 00000000-0000-0000-0000-00000000010a

My current workarround is to have input as string, and then cast to datetime:

edgedb> insert Task {dueAt := <datetime><str>$dueAt, title := <str>$title, assignees := (select User)};
Parameter <str>$dueAt: 2010-12-27T23:59:59-07:00
Parameter <str>$title: workarround
{default::Task {id: 40399418-586a-11ed-acba-377e1bb10a5d}}

MiroslavPetrik avatar Oct 30 '22 15:10 MiroslavPetrik