Uploaded image for project: 'Debezium'
  1. Debezium
  2. DBZ-9385

Clarify the use of $$ for escaping $-based variable substitutions in Debezium Server

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Major Major
    • 3.4.0.Alpha1
    • None
    • documentation
    • None
    • False
    • Hide

      None

      Show
      None
    • False

      In some instances, some Debezium configurations need to be expressed in application.properties and they contain a pattern that MicroProfile treats are requiring substitution and expansion, such as

      debezium.transforms.t1.route.topic.replacement=${routedByValue}
      

      It's not well documented that Quarkus provides a way to use $$ (double dollar sign) to signal that the following pattern shouldn't be expanded and to treat the $$ as the escape sequence of a single $ character.

      In other words, using this

      debezium.transforms.t1.route.topic.replacement=$${routedByValue}
      

      Will make sure the transform receives the value as

      ${routedByValue}
      

      In this case the transform behaves as expected but without escaping the dollar sign in the configuration properties file, the transform does not properly work.

              Unassigned Unassigned
              ccranfor@redhat.com Chris Cranford
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: