edgedb-cli
edgedb-cli copied to clipboard
Got Unimplemented input type when running queries with cal type variables in interactive shell
- EdgeDB CLI Version: 1.0.0-rc.2
- EdgeDB Version: edgedb/edgedb:1-rc2
- OS Version: arch linux
Steps to Reproduce:
- edgedb -I ...
- 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.
@fantix were you working on this?
@fantix were you working on this?
Nope, but I’ll check early tmr morning
Ah it's simply not implemented. Let me try implement the remaining types.
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}}