vlsi commented on a change in pull request #1754: [CALCITE-3730] Add hints to 
RelBuilder
URL: https://github.com/apache/calcite/pull/1754#discussion_r366179960
 
 

 ##########
 File path: 
cassandra/src/main/java/org/apache/calcite/adapter/cassandra/CassandraSchema.java
 ##########
 @@ -140,7 +140,7 @@ public CassandraSchema(String host, int port, String 
keyspace, String username,
     this.parentSchema = parentSchema;
     this.name = name;
 
-    this.hook = Hook.TRIMMED.add(node -> {
+    this.hook = Hook.TRIMMED.addThread(node -> {
       CassandraSchema.this.addMaterializedViews();
     });
 
 Review comment:
   I guess @michaelmior could clarify better.
   
   I've no idea what this does and I have very little understanding of how 
Calcite adapter works.
   What I know is `Hook#add` adds a static (cross-thread) hook, which typically 
interferes when concurrent execution is used (e.g. when tests are executed 
concurrently).

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


With regards,
Apache Git Services

Reply via email to