UNLOAD query involves ORDER-BY returns ERORR[4001].
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Trafodion |
Fix Committed
|
Medium
|
khaled Bouaziz |
Bug Description
Currently TRAF does not support order-by clause in UNLOAD stmt.
Appropriate error msg to be returned.
SQL>unload with purgedata from target
into '/bulkload/
l_orderkey,
from
where
and c_custkey = o_custkey
and l_orderkey = o_orderkey
and o_orderdate < date '1995-03-12'
and l_shipdate > date '1995-03-12'
group by
l_orderkey,
order by
revenue desc,
*** ERROR[4001] Column REVENUE is not found. Tables in scope: TRAFODION.
Changed in trafodion: | |
status: | New → Fix Committed |
Currently order by clause is not supported with bulk unload. and a syntax error will be produced when used order by is used.
this issue is addressed by the same changes made in the parser to address bug
1398981 unload with union query fails with ERROR[4066]