Last active
February 8, 2017 19:03
-
-
Save eqbalz/7f06b026a1e874daa58b3d29ebb347d6 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
| #RxHiveData only works with spark compute context | |
| computeContext <- RxSpark(consoleOutput = TRUE, persistentRun = TRUE) | |
| rxSetComputeContext(computeContext) | |
| airColInfo <- list( | |
| arrdelay = list(type = "integer"), | |
| #crsdeptime = list(type = "numeric"), | |
| dayofweek = list( | |
| type = "factor", | |
| levels = c( | |
| "Monday", | |
| "Tuesday", | |
| "Wednesday", | |
| "Thursday", | |
| "Friday", | |
| "Saturday", | |
| "Sunday" | |
| ) | |
| ) | |
| ) | |
| hive_data <- RxHiveData( | |
| query = "select * from AirlineDemoSmallHive", | |
| colInfo = airColInfo | |
| ) | |
| rxSummary(~., hive_data) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment