You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Jim Gan (JIRA)" <ji...@apache.org> on 2019/02/11 19:07:00 UTC
[jira] [Created] (PIG-5379) assert does not seem to be executed
after store statement
Jim Gan created PIG-5379:
----------------------------
Summary: assert does not seem to be executed after store statement
Key: PIG-5379
URL: https://issues.apache.org/jira/browse/PIG-5379
Project: Pig
Issue Type: Bug
Components: impl
Reporter: Jim Gan
The assert is not executed after store statement
test_data = load '/projects/gossip/tmp/jgan/test_stats.tsv' using PigStorage() as (cnt:long,old_cnt:long);
test_data = foreach test_data generate (cnt - old_cnt )*20 as n1:long, old_cnt;
test_data_2 = foreach test_data generate ((n1>0)?n1:(-n1)) as n1:long, old_cnt AS n2:long;
STORE test_data_2 INTO '/projects/gossip/tmp/jgan/debug_assert_8';
ASSERT test_data_2 by (n1 < n2); — this ASSERT is not executed
But this assert below is executed fine.
est_data = load '/projects/gossip/tmp/jgan/test_stats.tsv' using PigStorage() as (cnt:long,old_cnt:long);
test_data = foreach test_data generate (cnt - old_cnt )*20 as n1:long, old_cnt;
test_data_2 = foreach test_data generate ((n1>0)?n1:(-n1)) as n1:long, old_cnt AS n2:long;
ASSERT test_data_2 by (n1 < n2); — this ASSERT is executed
STORE test_data_2 INTO '/projects/gossip/tmp/jgan/debug_assert_8';
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)