Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Load TimeWithZone field from postgres

Hi,

I have trouble loading data from postgres field of type TimeWithZone.

I can normally load it, and see it in Data model viewer.

The problem is when I try to get min(), max() or amy function. It always return NULL.

So let say that I have "time" field in postgres of TimeWithZone type.


LOAD

     min(time) as start,

     max(time) as stop

Resident temp_database

group By id;

Return all null rows.

I even try

LOAD

     min(Time(time)) as start,

     max(Time(time)) as stop

Resident temp_database

group By id;

and

LOAD

     min(Time#(time)) as start,

     max(Time#(time)) as stop

Resident temp_database

group By id;

I also try

LOAD

     Num(time) as nTime,

     Chr(time) as cTime

Resident temp_database;

return all null rows.

How to handle this type of fields?

10 Replies
tresesco
MVP
MVP

What if you try like:

Timestamp(Max(Timestamp#(time,'hh:mm:ss+00') ))  as Stop