This repository was archived by the owner on Sep 27, 2019. It is now read-only.
This repository was archived by the owner on Sep 27, 2019. It is now read-only.
Implement COALESCE function #563
Open
Description
Here's what we get now:
postgres=# create table a(id int primary key, value varchar);
create table a(id int primary key, value varchar) 0
postgres=# insert into a values(1, 'hi');
insert into a values(1, 'hi') 1
postgres=# select * from a;
id | value
----+-------
1 | hi
(1 row)
postgres=# select coalesce(id, value) as coal from a;
function coalesce not found.
It seems that we already have the function type:
https://github.com/cmu-db/peloton/blob/master/src/include/type/types.h#L227
But there's no implementation for that.