You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@hive.apache.org by "scarlin-cloudera (via GitHub)" <gi...@apache.org> on 2023/05/01 14:32:01 UTC

[GitHub] [hive] scarlin-cloudera commented on pull request #4212: HIVE-27238: Avoid Calcite Code generation for MetadataHandler on ever…

scarlin-cloudera commented on PR #4212:
URL: https://github.com/apache/hive/pull/4212#issuecomment-1529778518

    @zabetak : I'm not sure what is meant by a micro-benchmark.  Can you explain what is needed here or provide an example from a previous commit?
    
    As for not being thread-safe: Not sure what you mean here.  The "get" is wrapped in a "synchronized" call.  I don't think the underlying Calcite classes will have any thread safety issues when I did the code inspection within Calcite, but admittedly, I'm not a Calcite expert.
    
    But without this code (as I hope to show with the micro-benchmarks perhaps), we are regenerating Calcite classes which they specifically try to avoid.  It does add to the compile time as I have seen through my own private benchmarks.
    
   I do realize this is risky though.  Do we have any framework within Hive that does concurrency testing? If not, perhaps that is something I should consider adding.
   


-- 
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: gitbox-unsubscribe@hive.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org