[ 
https://issues.apache.org/jira/browse/ASTERIXDB-2480?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Xikui Wang updated ASTERIXDB-2480:
----------------------------------
    Description: 
{code}
drop dataverse lapd if exists;
create dataverse lapd;
use lapd;
create type WorrisomeNotificationType as {
        dataverseName: string,
        channelName: string
};
create feed WorrisomeTweetsFeed with {
  "adapter-name" : "http_adapter",
  "addresses" : "127.0.0.1:10011",
  "address-type" : "IP",
  "type-name" : "WorrisomeNotificationType",
  "format" : "json"
};
create dataset WorrisomeNotifications(WorrisomeNotificationType) primary key 
dataverseName;
connect feed WorrisomeTweetsFeed to dataset WorrisomeNotifications;
start feed WorrisomeTweetsFeed;
{code}

feed following json data, a NPE will be thrown.


{ "dataverseName":"dhs", "channelName":"WorrisomeTweetsNearMonumentsChannel", 
"channelExecutionTime":"2018-11-12T18:43:48.508Z"}


  was:
{code}
drop dataverse lapd if exists;
create dataverse lapd;
use lapd;
create type WorrisomeNotificationType as {
        dataverseName: string,
        channelName: string
};
create feed WorrisomeTweetsFeed with {
  "adapter-name" : "http_adapter",
  "addresses" : "127.0.0.1:10011",
  "address-type" : "IP",
  "type-name" : "WorrisomeNotificationType",
  "format" : "json"
};
create dataset WorrisomeNotifications(WorrisomeNotificationType) primary key 
dataverseName;
connect feed WorrisomeTweetsFeed to dataset WorrisomeNotifications;
start feed WorrisomeTweetsFeed;
{code}

feed following json data, a NPE will be thrown.

{json}
{ "dataverseName":"dhs", "channelName":"WorrisomeTweetsNearMonumentsChannel", 
"channelExecutionTime":"2018-11-12T18:43:48.508Z"}
{json}


> JSON Parser failed at NPE
> -------------------------
>
>                 Key: ASTERIXDB-2480
>                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-2480
>             Project: Apache AsterixDB
>          Issue Type: Bug
>            Reporter: Xikui Wang
>            Assignee: Wail Alkowaileet
>            Priority: Major
>
> {code}
> drop dataverse lapd if exists;
> create dataverse lapd;
> use lapd;
> create type WorrisomeNotificationType as {
>       dataverseName: string,
>       channelName: string
> };
> create feed WorrisomeTweetsFeed with {
>   "adapter-name" : "http_adapter",
>   "addresses" : "127.0.0.1:10011",
>   "address-type" : "IP",
>   "type-name" : "WorrisomeNotificationType",
>   "format" : "json"
> };
> create dataset WorrisomeNotifications(WorrisomeNotificationType) primary key 
> dataverseName;
> connect feed WorrisomeTweetsFeed to dataset WorrisomeNotifications;
> start feed WorrisomeTweetsFeed;
> {code}
> feed following json data, a NPE will be thrown.
> { "dataverseName":"dhs", "channelName":"WorrisomeTweetsNearMonumentsChannel", 
> "channelExecutionTime":"2018-11-12T18:43:48.508Z"}



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

Reply via email to