Created
December 1, 2015 20:46
-
-
Save bcambel/84c06c6c048652c6245e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 0: jdbc:drill:zk=local> SELECT count(CONVERT_FROM(row_key, 'UTF8')) AS clickid, | |
| . . . . . . . . . . . > CONVERT_FROM(clicks.clickinfo.url, 'UTF8') AS url | |
| . . . . . . . . . . . > FROM hbase.clicks | |
| . . . . . . . . . . . > GROUP BY clicks.clickinfo.url; | |
| +----------+-------------------------+ | |
| | clickid | url | | |
| +----------+-------------------------+ | |
| | 3 | http://www.google.com | | |
| | 2 | http://www.ask.com | | |
| | 3 | http://www.amazon.com | | |
| | 1 | http://www.reuters.com | | |
| +----------+-------------------------+ | |
| 4 rows selected (3.066 seconds) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment