| /* |
| * 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. |
| */ |
| /* |
| * Description : This test case is to verify the fix for issue350 |
| : https://code.google.com/p/asterixdb/issues/detail?id=350 |
| * Expected Res : Success |
| * Date : 28th April 2013 |
| */ |
| |
| use TinySocial; |
| |
| |
| load dataset TweetMessages using localfs ((`path`=`asterix_nc1://data/twitter/tw_messages.adm`),(`format`=`adm`)); |
| |
| insert into TweetMessages |
| select element {'tweetid':'13','user':{'screen-name':'NathanGiesen@211','lang':'en','friends_count':39345,'statuses_count':479,'name':'Nathan Giesen','followers_count':49420,'hobbies':['basket weaving','mud wrestling']},'sender-location':TinySocial.point('47.44,80.65'),'send-time':TinySocial.datetime('2008-04-26T10:10:35'),'referred-topics':{{'tweeting'}},'message-text':'tweety tweet, my fellow tweeters!'}; |
| insert into TweetMessages |
| select element {'tweetid':'15','user':{'screen-name':'Jason17','lang':'en','friends_count':393,'statuses_count':47,'name':'Nathan Giesen','followers_count':420,'hobbies':['swimming']},'sender-location':TinySocial.point('49.44,80.65'),'send-time':TinySocial.datetime('2009-04-26T10:10:35'),'referred-topics':{{'nothing'}},'message-text':'Nothing to say!'}; |