diqiu50 commented on PR #12414:
URL: https://github.com/apache/gravitino/pull/12414#issuecomment-5291457507

   The Spark version is already fixed by the jar on the classpath, so 
CatalogNameAdaptor reading SPARK_VERSION and looking the catalog classes up 
again is a second dispatch on the same information — and it costs us 11 
hardcoded class names that nothing checks, plus a misleading provider is not 
supported yet warning when the jar does not match the cluster. Could each 
version module declare its own catalog classes and pass them to the driver 
plugin, instead of the shared code looking them up by version? Then the names 
are checked at compile time, CatalogNameAdaptor and the version package go 
away, and adding a Spark version stops touching shared code.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to