vlsi opened a new pull request, #5325:
URL: https://github.com/apache/calcite/pull/5325

   Jira: [CALCITE-7852](https://issues.apache.org/jira/browse/CALCITE-7852)
   
   Since CALCITE-7787, a model may set `pdxSerializablePackagePath` only when 
`calcite.geode.pdxSerializablePackagePath.allowed` is `true`, so a default 
deployment leaves the operand out. Creating a schema with a new client cache 
then fails in both `GeodeSchemaFactory` and `GeodeSimpleSchemaFactory`, because 
`GeodeUtils.createClientCache` passes the absent operand to `new 
ReflectionBasedAutoSerializer(String...)`:
   
   ```text
   java.lang.NullPointerException: Cannot invoke "String.split(String)" because 
"value" is null
   ```
   
   With the operand absent, `createClientCache` now creates a 
`ReflectionBasedAutoSerializer` with no class pattern.
   
   Two new tests in `GeodeSchemaFactoryTest`, one per factory, create the 
schema without the operand after closing the client cache; both fail on main 
with the exception above.
   
   The same fix was first made inside #5213 (CALCITE-7736), which now leaves 
`createClientCache` as main has it, so the two pull requests touch `GeodeUtils` 
independently.
   
   🤖 Generated with [Claude Code](https://claude.com/claude-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