ggjh-159 opened a new issue, #13230:
URL: https://github.com/apache/gluten/issues/13230

   ### Backend
   
   VL (Velox)
   
   ### Bug description
   
   ### Description
   
   ## Motivation
   
   With gluten-flink, connector source/sink factories discovered at plan time 
(e.g. NexmarkSourceFactory, reached through gluten's VeloxSourceSinkFactory 
service) are instantiated inside the planner ComponentClassLoader. Many 
factories touch jackson (`ObjectMapper`) during planning.
   
   Flink's `ComponentClassLoader` treats a package that is in neither 
`OWNER_CLASSPATH` nor `COMPONENT_CLASSPATH` as component-only: it never falls 
back to the owner classloader. `com.fasterxml.jackson` is in neither list and 
is not bundled in the planner component jars, the factory cannot see it and 
instantiation fails at plan time:
   
   ```
   java.lang.NoClassDefFoundError: 
com/fasterxml/jackson/core/JsonProcessingException
     at <factory class init / ObjectMapper first use>
   Caused by: java.lang.ClassNotFoundException: 
com.fasterxml.jackson.core.JsonProcessingException
   ```
   
   Any query using such a connector fails to submit; this makes whole connector 
families unusable on the gluten-flink path.
   
   ## Proposed Capability
   
   Add `com.fasterxml.jackson` to the owner-first package list in 
`PlannerModule`, so jackson resolves from the Flink distribution's `lib/` 
classpath for code running inside the planner component classloader.
   
   ### Gluten version
   
   main branch
   
   ### Spark version
   
   None
   
   ### Spark configurations
   
   _No response_
   
   ### System information
   
   _No response_
   
   ### Relevant logs
   
   ```bash
   
   ```


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to