Feed tutorial revise.
1. Fix 1352.
2. Revise the twitter feed part to work with the new tweet parser.
Change-Id: I110e2225a3036109bf58a9ef529407de955335ab
Reviewed-on: https://asterix-gerrit.ics.uci.edu/1152
Reviewed-by: Ian Maxon <imaxon@apache.org>
Sonar-Qube: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
diff --git a/asterixdb/asterix-doc/src/site/markdown/feeds/tutorial.md b/asterixdb/asterix-doc/src/site/markdown/feeds/tutorial.md
index 39e04b1..fb06a92 100644
--- a/asterixdb/asterix-doc/src/site/markdown/feeds/tutorial.md
+++ b/asterixdb/asterix-doc/src/site/markdown/feeds/tutorial.md
@@ -61,22 +61,17 @@
create dataverse feeds;
use dataverse feeds;
- create type TwitterUser if not exists as open{
- screen_name: string,
- language: string,
- friends_count: int32,
- status_count: int32,
- name: string,
- followers_count: int32
+ create type TwitterUser as closed {
+ screen_name: string,
+ lang: string,
+ friends_count: int32,
+ statuses_count: int32
};
- create type Tweet if not exists as open{
- id: string,
- user: TwitterUser,
- latitude:double,
- longitude:double,
- created_at:string,
- message_text:string
- };
+
+ create type Tweet as open {
+ id: int64,
+ user: TwitterUser
+ }
create dataset Tweets (Tweet)
primary key id;
@@ -103,6 +98,7 @@
create feed TwitterFeed if not exists using "push_twitter"
(("type-name"="Tweet"),
+ ("format"="twitter-status"),
("consumer.key"="************"),
("consumer.secret"="**************"),
("access.token"="**********"),
@@ -185,6 +181,7 @@
create feed my_feed using
rss_feed (
("type-name"="Rss"),
+ ("format"="rss"),
("url"="http://rss.cnn.com/rss/edition.rss")
);