Skip to main content
Announcements
Customer Spotlight: Discover what’s possible with embedded analytics Oct. 16 at 10:00 AM ET: REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Peek not working

The following peek call return NULL. Why?

qualify *;

Raw:

LOAD RUN_ID,

     EXECUTION_DATE

FROM

[..\Data\Raw.tabdel]

(txt, codepage is 1252, embedded labels, delimiter is '\t', msq);

Aggregates:

LOAD RUN_ID,

     EXECUTION_DATE

FROM

[..\Data\foo.tabdel]

(txt, codepage is 1252, embedded labels, delimiter is '\t', msq);

MaxRunId:

inner keep (Aggregates)

load max([Aggregates.RUN_ID]) as MAX_RUN_ID

resident Aggregates

group by [Aggregates.RUN_ID];

let mypeek = peek('[MaxRunId.MAX_RUN_ID]',0,'MaxRunId');

MaxAggregates:

LOAD RUN_ID,

     EXECUTION_DATE

FROM

[..\Data\MIB1-FOO-aggregates.tabdel]

(txt, codepage is 1252, embedded labels, delimiter is '\t', msq)

where RUN_ID = $(mypeek);

unqualify *;

Thanks,

Miguel

1 Solution

Accepted Solutions
Not applicable
Author

Hi,

Try the same peek but without [ ] over qualified field name

let mypeek = peek('MaxRunId.MAX_RUN_ID',0,'MaxRunId');

View solution in original post

2 Replies
MayilVahanan

HI

Try like this

Let mypeek = peek('[MAX_RUN_ID]',0,'MaxRunId');

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Not applicable
Author

Hi,

Try the same peek but without [ ] over qualified field name

let mypeek = peek('MaxRunId.MAX_RUN_ID',0,'MaxRunId');