Steven Jacobs created ASTERIXDB-1849:
----------------------------------------
Summary: Can't send a UUID over socket feed
Key: ASTERIXDB-1849
URL: https://issues.apache.org/jira/browse/ASTERIXDB-1849
Project: Apache AsterixDB
Issue Type: Bug
Reporter: Steven Jacobs
When I try to use the uuid() function call to send a value to a feed, the
record fails with error:
2017-03-20 12:00:29,112 WARN [Executor-17:asterix_nc1]
dataflow.FeedRecordDataFlowController
(FeedRecordDataFlowController.java:parseAndForward(101)) - Parser failed to
parse record
org.apache.asterix.external.parser.ADMDataParser$ParseException: Parse error at
(0, 340): ASX3054: Mismatch Type, expecting a value of type uuid got uuid
at
org.apache.asterix.external.parser.ADMDataParser.parseConstructor(ADMDataParser.java:901)
at
org.apache.asterix.external.parser.ADMDataParser.admFromLexerStream(ADMDataParser.java:364)
at
org.apache.asterix.external.parser.ADMDataParser.parseRecord(ADMDataParser.java:554)
at
org.apache.asterix.external.parser.ADMDataParser.admFromLexerStream(ADMDataParser.java:357)
at
org.apache.asterix.external.parser.ADMDataParser.parseAdmInstance(ADMDataParser.java:182)
at
org.apache.asterix.external.parser.ADMDataParser.parse(ADMDataParser.java:163)
When I send the same record through an insert, it works correctly. Here are the
DDL and insert statement:
create type EmergencyReport as closed {
reportId: uuid,
Etype: string,
location: circle,
timeStamp: datetime
}
create dataset EmergencyReports(EmergencyReport)
primary key reportId;
insert into dataset channels.EmergencyReports(
{"reportId" : uuid(), "Etype" : "flood" , "location" : circle("846.5,2589.56
1.0"), "timeStamp" : datetime("2017-03-20T11:58:44.748")});
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)