aokolnychyi commented on issue #1485:
URL: https://github.com/apache/iceberg/issues/1485#issuecomment-696817291
Here is the code I used to refresh the cache in procedures:
```
protected void refreshCache(Identifier ident, Table table) {
SparkSession spark = SparkSession.active();
CacheManager cacheManager = spark.sharedState().cacheManager();
DataSourceV2Relation relation = DataSourceV2Relation.create(table,
Option.apply(catalog), Option.apply(ident));
cacheManager.recacheByPlan(spark, relation);
}
```
----------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]