You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "dmgcodevil (via GitHub)" <gi...@apache.org> on 2023/02/21 20:54:16 UTC

[GitHub] [iceberg] dmgcodevil opened a new issue, #6897: Filter by partition using transform

dmgcodevil opened a new issue, #6897:
URL: https://github.com/apache/iceberg/issues/6897

   ### Query engine
   
   Iceberg API 0.12
   
   ### Question
   
   I'd like to filter data by `bucket` partition: `table.newScan().filter(Expressions.greaterThanOrEqual(Expressions.bucket[Int]("id", 5), 0)).planFiles().`
   
   I'm getting:
   
   ```
   Visitor org.apache.iceberg.expressions.InclusiveMetricsEvaluator$MetricsEvalVisitor@346cafe6 does not support expression: bucket[5](ref(id=1, accessor-type=string))
   org.apache.iceberg.exceptions.ValidationException: Visitor org.apache.iceberg.expressions.InclusiveMetricsEvaluator$MetricsEvalVisitor@346cafe6 does not support expression: bucket[5](ref(id=1, accessor-type=string))
   	at org.apache.iceberg.exceptions.ValidationException.check(ValidationException.java:46)
   	at org.apache.iceberg.expressions.ExpressionVisitors$BoundExpressionVisitor.predicate(ExpressionVisitors.java:124)
   	at org.apache.iceberg.expressions.ExpressionVisitors.visitEvaluator(ExpressionVisitors.java:346)
   	at org.apache.iceberg.expressions.InclusiveMetricsEvaluator$MetricsEvalVisitor.eval(InclusiveMetricsEvaluator.java:107)
   	at org.apache.iceberg.expressions.InclusiveMetricsEvaluator$MetricsEvalVisitor.access$100(InclusiveMetricsEvaluator.java:82)
   	at org.apache.iceberg.expressions.InclusiveMetricsEvaluator.eval(InclusiveMetricsEvaluator.java:76)
   	at org.apache.iceberg.ManifestReader.lambda$entries$0(ManifestReader.java:184)
   	at org.apache.iceberg.io.CloseableIterable$3.shouldKeep(CloseableIterable.java:82)
   	at org.apache.iceberg.io.FilterIterator.advance(FilterIterator.java:67)
   	at org.apache.iceberg.io.FilterIterator.hasNext(FilterIterator.java:50)
   	at org.apache.iceberg.io.FilterIterator.advance(FilterIterator.java:65)
   	at org.apache.iceberg.io.FilterIterator.hasNext(FilterIterator.java:50)
   	at org.apache.iceberg.io.FilterIterator.advance(FilterIterator.java:65)
   	at org.apache.iceberg.io.FilterIterator.hasNext(FilterIterator.java:50)
   	at org.apache.iceberg.io.CloseableIterable$4$1.hasNext(CloseableIterable.java:108)
   	at org.apache.iceberg.util.ParallelIterable$ParallelIterator.lambda$new$1(ParallelIterable.java:67)
   	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
   	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
   	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
   	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
   	at java.base/java.lang.Thread.run(Thread.java:834)
   ```
   
   Could you please help me to figure out how to query by partition using the transformation function?


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


[GitHub] [iceberg] github-actions[bot] commented on issue #6897: Filter by partition using transform

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #6897:
URL: https://github.com/apache/iceberg/issues/6897#issuecomment-1685435895

   This issue has been automatically marked as stale because it has been open for 180 days with no activity. It will be closed in next 14 days if no further activity occurs. To permanently prevent this issue from being considered stale, add the label 'not-stale', but commenting on the issue is preferred when possible.


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


[GitHub] [iceberg] github-actions[bot] closed issue #6897: Filter by partition using transform

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #6897: Filter by partition using transform 
URL: https://github.com/apache/iceberg/issues/6897


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


[GitHub] [iceberg] github-actions[bot] commented on issue #6897: Filter by partition using transform

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #6897:
URL: https://github.com/apache/iceberg/issues/6897#issuecomment-1704444790

   This issue has been closed because it has not received any activity in the last 14 days since being marked as 'stale'


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org