blob: b6478cb5cb48beb03fbea44b89303f680bc43091 [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.
*/
// requesttype=application/json
// param $p1:string=Customer#000000001
// param $p2:string=Customer#000000002
// param $p3:string=Customer#000000003
drop dataverse tpch if exists;
create dataverse tpch;
use tpch;
create type tpch.CustomerType as
closed {
c_custkey : bigint,
c_name : string,
c_address : string,
c_nationkey : bigint,
c_phone : string,
c_acctbal : double,
c_mktsegment : string,
c_comment : string
};
create dataset Customer(CustomerType) primary key c_custkey;
set rewrite_in_as_or "false";
select value c.c_custkey
from Customer c
where c.c_name in [$p1, $p2, $p3]
order by c.c_custkey;