if (FALSE) {
library(sparklyr)
sc <- spark_connect(master = "local", version = "2.4.0", packages = "delta")
sdf_len(sc, 5) %>% spark_write_delta(path = "delta-test")
stream <- stream_read_delta(sc, "delta-test") %>%
stream_write_json("json-out")
stream_stop(stream)
}
Run the code above in your browser using DataLab