Xikui Wang created ASTERIXDB-2486:
-------------------------------------

             Summary: IntroduceDynamicTypeCastForExternalFunctionRule may fail 
into infinite loop when input is ANY
                 Key: ASTERIXDB-2486
                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-2486
             Project: Apache AsterixDB
          Issue Type: Bug
            Reporter: Xikui Wang


use test;

drop dataset EmpDataset if exists;
drop feed UserFeed if exists;
drop type InputRecordType if exists;
drop type DetectResultType if exists;

create type InputRecordType as closed {
id:int64,
fname:string,
lname:string,
age:int64,
dept:string
};

create type DetectResultType as open{
id:int64,
sensitive: boolean
};

create dataset EmpDataset(InputRecordType) primary key id;

create feed UserFeed with {
    "adapter-name" : "socket_adapter",
    "sockets" : "127.0.0.1:10001",
    "address-type" : "IP",
    "type-name" : "InputRecordType",
    "format" : "adm",
    "upsert-feed" : "true"
};

connect feed UserFeed to dataset EmpDataset WHERE 
testlib#fnameDetector(t).sensitive = TRUE;

start feed UserFeed;



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to