You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2021/12/21 07:39:56 UTC

[GitHub] [pulsar] gaoran10 opened a new issue #13427: [Pulsar SQL] Query data with empty schema version for no-bytes schema type

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: commits-unsubscribe@pulsar.apache.org

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



[GitHub] [pulsar] github-actions[bot] commented on issue #13427: [Pulsar SQL] Query data with empty schema version for no-bytes schema type

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #13427:
URL: https://github.com/apache/pulsar/issues/13427#issuecomment-1051438402


   The issue had no activity for 30 days, mark with Stale label.


-- 
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: commits-unsubscribe@pulsar.apache.org

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