Github user paul-rogers commented on a diff in the pull request: https://github.com/apache/drill/pull/795#discussion_r108051696 --- Diff: exec/java-exec/src/main/java/org/apache/drill/exec/store/AbstractSchema.java --- @@ -198,6 +200,10 @@ public Expression getExpression(SchemaPlus parentSchema, String name) { @Override public boolean contentsHaveChangedSince(long lastCheck, long now) { + //use cached schema for 1 second, it will be helpful if it is highly concurrent scenario + if( abs(now - lastCheck) < 1000 ) { --- End diff -- You want to check if either now is one second in the future -- or one second in the past? Under what conditions would lastCheck - now be negative and so would need an abs?
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---