Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 08-02-2016 05:37 PM
This query works in Ambari Hive View and Zeppelin SQL view
SELECT sentiment, CASE WHEN LENGTH(location) > 0 THEN substring(location,0,10) ELSE 'UNK' END AS location, COUNT(*) as num from tweetsbi where country is not null and ts is not null and tweet_id is not null and sentiment is not null and location is not null and location != '' and country != '' GROUP BY sentiment, location order by num desc, sentiment
It does not work in Hive view in Zeppelin.
This is on HDP 2.4.2 Sandbox.
Created 08-02-2016 06:02 PM
@Timothy Spann: Can you try @nmaillard's suggestion from here?
Created 08-02-2016 06:02 PM
@Timothy Spann: Can you try @nmaillard's suggestion from here?
Created 08-02-2016 06:31 PM
Another work around which worked for me is havimg hive interpretur as first one called out in youe bind. good friend binu matthew found that one
Created 06-09-2017 08:11 AM
@timothy span did substring function really worked with sql interpreter on Zeppelin? or did you some change to the interpreter? Thank you!
,