nicoloboschi opened a new pull request, #18008:
URL: https://github.com/apache/pulsar/pull/18008

   ### Motivation
   In the JDBC sink even if you don't add a field to `key` or `nonKey` all the 
table fields are read from the table metadata and included in the INSERT/UPSERT 
statement. This limits the possibility to leverage database fields default 
value.
   
   ### Modifications
   
   * Added new flag `excludeNonDeclaredFields` (default false) to make the sink 
only include declared fields in the queries. The behavior is retro compatible 
with the current sinks since the default value is to still include non listed 
fields.
   
   ### Documentation
   
   <!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. -->
   
   - [x] `doc` <!-- Your PR contains doc changes. Please attach the local 
preview screenshots (run `sh start.sh` at `pulsar/site2/website`) to your PR 
description, or else your PR might not get merged. -->
   - [ ] `doc-required` <!-- Your PR changes impact docs and you will update 
later -->
   - [ ] `doc-not-needed` <!-- Your PR changes do not impact docs -->
   - [ ] `doc-complete` <!-- Docs have been already added -->
   


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