blob: 752f6075ca97e5d8231e683113465bc3b1435126 [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/*
* Description : Test for clause of the position variable in FLWOR expression
* Expected Result : Success
* Date : 09/17/2013
*/
use test;
select element {'partkey':gen0.partkey,'pid':p,'shipdate':j.l_shipdate}
from
( select element {'partkey':partkey, 'i':i}
from (select element l from LineItem l order by l.l_partkey, l.l_shipdate) as i
group by i.l_partkey as partkey
) as gen0,
gen0.i as j at p
where p < 4;