flex table coalesce

Moderator: NorbertKrupa

Post Reply
whisperstream
Newbie
Newbie
Posts: 1
Joined: Mon May 18, 2015 8:26 pm

flex table coalesce

Post by whisperstream » Mon May 25, 2015 7:53 pm

I created a simple flex table and want to create a materialized "native" column for the orgId so before adding data to my flex table "json_raw", I executed the following sql statement.

alter table json_raw add column _orgId varchar(100) default coalesce(orgId, "entity.orgId", "meeting.participant.orgId", 'unknown')::varchar(100);

After importing my data, I was expecting to see the _orgId column populated, but it's empty, what gives?

Can I not use "coalesce" to materialize flex table columns or am I missing something else?

Thanks

Post Reply

Return to “Vertica SQL”