You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "ROOBALJINDAL (via GitHub)" <gi...@apache.org> on 2024/12/06 06:42:48 UTC

[I] Empty schema is committed when no new messages are found in kafka while using DebeziumSource [hudi]

ROOBALJINDAL opened a new issue, #12438:
URL: https://github.com/apache/hudi/issues/12438

   **Background:**
   We have created a implementation i.e. MssqlDebeziumSource, similar to MysqlDebeziumSource that we already have. We are using apicurio schema registry and aws MSK cluster for kafka.
   
   **Issue**: 
   We create a table by ingesting csv using CsvDFSSource and it commits a commit file in .hoodie folder with schema details. 
   When we run multistreamer job for the same table to process cdc events in kafka for upsert operation, if kafka topic is empty, hudi performs a empty commit without schema. Schema details are empty in the commit. 
   
   **Use case:** When hive server goes down, we create a new one, tries to sync external table from s3 to restore tables, tables are created without columns since schema doesnt have columns in it.
   
   I tested it by changing source class to JsonKafkaSource, then performed CSV to CDC kafka transition, it worked fine. Empty commit was performed with schema details.
   
   
   **Code details:**
   ![image](https://github.com/user-attachments/assets/0324dee0-1472-4f5e-9556-6afd4e171367)
   
   Here empty dataset is being created without schema, looks like it is intentionally done but can we make it configurable? 
   
   **Expected behavior** : Schema should be present even for the empty commit for DebeziumSource. If not feasible, can we make it configurable?
   
   **Environment Description**
   
   * Hudi version : 14.0
   
   * Spark version : 3.4.1
   
   * Storage (HDFS/S3/GCS..) : s3
   
   


-- 
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@hudi.apache.org.apache.org

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


Re: [I] Empty schema is committed when no new messages are found in kafka while using DebeziumSource [hudi]

Posted by "ad1happy2go (via GitHub)" <gi...@apache.org>.
ad1happy2go commented on issue #12438:
URL: https://github.com/apache/hudi/issues/12438#issuecomment-2548029628

   We already have a fixed merged - https://github.com/apache/hudi/pull/12066 . 
   
   Closing the ticket. Please reopen in case of any concerns. Thanks.


-- 
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@hudi.apache.org

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


Re: [I] Empty schema is committed when no new messages are found in kafka while using DebeziumSource [hudi]

Posted by "ad1happy2go (via GitHub)" <gi...@apache.org>.
ad1happy2go closed issue #12438: Empty schema is committed when no new messages are found in kafka while using DebeziumSource
URL: https://github.com/apache/hudi/issues/12438


-- 
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@hudi.apache.org

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


Re: [I] Empty schema is committed when no new messages are found in kafka while using DebeziumSource [hudi]

Posted by "rangareddy (via GitHub)" <gi...@apache.org>.
rangareddy commented on issue #12438:
URL: https://github.com/apache/hudi/issues/12438#issuecomment-2534836062

   Hi @ROOBALJINDAL 
   
   I will try to reproduce the issue and determine the next action item.


-- 
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@hudi.apache.org

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


Re: [I] Empty schema is committed when no new messages are found in kafka while using DebeziumSource [hudi]

Posted by "ROOBALJINDAL (via GitHub)" <gi...@apache.org>.
ROOBALJINDAL commented on issue #12438:
URL: https://github.com/apache/hudi/issues/12438#issuecomment-2548058735

   @ad1happy2go when we can expect its released version? Will this be the part of release-0.16.0?


-- 
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@hudi.apache.org

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