C0urante commented on PR #12637:
URL: https://github.com/apache/kafka/pull/12637#issuecomment-1485252002

   I'm also wondering about the spec for V2 field syntax. The KIP states that 
"if the backticks are in a wrapping position (opening or closing a field name), 
then need to be escaped with backslash", but I think we might actually want 
something like "if a backtick is followed by a dot in the field name, the 
backtick should be escaped with a backslash".
   
   For example:
   
   - With a field name of <code>a.b</code>, the user would have to enclose the 
field in backticks to handle the dot in the name, so they would specify 
<code>`a.b`</code> in the connector config
   - With a field name of <code>`a.b</code>, there's no dot after the backtick 
in the name, so nothing special is necessary; the user can just add that 
backtick to the field name in the connector config and use <code>``a.b`</code>
   - Similarly, with a field name of <code>a.b`</code>, the user could just 
specify <code>`a.b``</code> in the connector config
   - But, with a field name of <code>a`.b</code>, the user would need to signal 
to us that the <code>`.</code> part of that name is not the end of the field 
name, so they would have to specify <code>`a\`.b`</code> in the connector config
   
   Does that work, or is the current logic/spec correct?


-- 
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: jira-unsubscr...@kafka.apache.org

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

Reply via email to