Github user akashrn5 commented on a diff in the pull request:
https://github.com/apache/carbondata/pull/2180#discussion_r183205830
--- Diff:
datamap/lucene/src/main/java/org/apache/carbondata/datamap/lucene/LuceneFineGrainDataMap.java
---
@@ -182,7 +182,7 @@ private String getQueryString(Expression expression) {
// execute index search
TopDocs result;
try {
- result = indexSearcher.search(query, indexReader.maxDoc());
+ result = indexSearcher.search(query, Integer.MAX_VALUE);
--- End diff --
@Indhumathi27 i think what jacky means is, when user fires sql like "select
* from table wjere text_match('name:a',100)", he should fire with number of
records in result from lucene search, if he doesnot give in sql, then we will
pass integer max , so please handle according to that in udf
---