gaoran10 opened a new issue #13427:
URL: https://github.com/apache/pulsar/issues/13427


   **Describe the bug**
   
   If we query data on Pulsar SQL, if the data has an empty schema version, the 
query will encounter `java.nio.BufferUnderflowException` exception.
   
   Normally, if we use the producer to publish messages with bytes schema, the 
message will maintain an empty schema version, it's an empty array bytes.
   
   We could handle this case in Pulsar SQL.
   
   But if the topic has a no-bytes schema, such as `String, JSON, Avro`, and 
users publish messages with the bytes schema, then the messages couldn't be 
queried in Pulsar SQL.
   
   **To Reproduce**
   Steps to reproduce the behavior:
   1. Create a producer with a no-bytes schema, such as String.
   2. Use a bytes schema producer to publish messages to the topic.
   3. Query the topic on Pulsar SQL.
   4. See the `java.nio.BufferUnderflowException` exception.
   
   **Expected behavior**
   
   We need to handle this case to avoid `java.nio.BufferUnderflowException` 
exception. But it's strange to publish a bytes message to no-bytes schema topic.
   


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