kunal642 commented on a change in pull request #4141:
URL: https://github.com/apache/carbondata/pull/4141#discussion_r646308065
##########
File path:
examples/spark/src/main/scala/org/apache/carbondata/examples/LuceneIndexExample.scala
##########
@@ -60,40 +60,6 @@ object LuceneIndexExample {
| AS 'lucene'
""".stripMargin)
- // 1. Compare the performance:
-
- def time(code: => Unit): Double = {
- val start = System.currentTimeMillis()
- code
- // return time in second
- (System.currentTimeMillis() - start).toDouble / 1000
- }
-
- val timeWithoutLuceneIndex = time {
-
- spark.sql(
- s"""
- | SELECT count(*)
- | FROM personTable where id like '% test1 %'
- """.stripMargin).show()
-
- }
-
- val timeWithLuceneIndex = time {
-
- spark.sql(
Review comment:
ignore this run in RunExamples.scala and revert the change here
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]