Github user chenerlu commented on a diff in the pull request:
https://github.com/apache/carbondata/pull/877#discussion_r115926114
--- Diff: examples/spark/src/main/scala/org/apache/carbondata/examples/CarbonExample.scala ---
@@ -48,14 +49,25 @@ object CarbonExample {
// Perform a query
cc.sql("""
+ SELECT country, id, phonetype AS amount
+ FROM t3
+ WHERE country IN ('china','france')
+ """).show(100)
+ cc.sql("""
SELECT country, count(salary) AS amount
FROM t3
WHERE country IN ('china','france')
GROUP BY country
""").show()
-
+ var start = System.currentTimeMillis()
+ cc.sql("""
+ SELECT country, id, phonetype AS amount
+ FROM t3
+ WHERE country IN ('france')
+ """).show(1000000)
+ print("query time: " + (System.currentTimeMillis() - start))
// Drop table
- cc.sql("DROP TABLE IF EXISTS t3")
+ // cc.sql("DROP TABLE IF EXISTS t3")
--- End diff --
Should drop table at last.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at
[hidden email] or file a JIRA ticket
with INFRA.
---