shenjiayu17 commented on a change in pull request #4012:
URL: https://github.com/apache/carbondata/pull/4012#discussion_r533972546



##########
File path: 
geo/src/main/java/org/apache/carbondata/geo/scan/filter/executor/PolygonFilterExecutorImpl.java
##########
@@ -73,8 +77,24 @@ private int getNearestRangeIndex(List<Long[]> ranges, long 
searchForNumber) {
    * @return True or False  True if current block or blocket needs to be 
scanned. Otherwise False.
    */
   private boolean isScanRequired(byte[] maxValue, byte[] minValue) {
-    PolygonExpression polygon = (PolygonExpression) exp;
-    List<Long[]> ranges = polygon.getRanges();
+    List<Long[]> ranges = new ArrayList<>();
+    if (exp instanceof PolygonExpression) {

Review comment:
       Removed the changes.




----------------------------------------------------------------
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:
us...@infra.apache.org


Reply via email to