Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-9074

Connect's Values class does not parse time or timestamp values from string literals

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.0, 2.0.0, 2.1.0, 2.2.0, 2.3.0
    • Fix Version/s: 2.5.0, 2.3.2, 2.4.1, 2.6.0
    • Component/s: KafkaConnect
    • Labels:
      None

      Description

      The `Values.parseString(String)` method that returns a `SchemaAndValue` is not able to parse a string that contains a time or timestamp literal into a logical time or timestamp value. This is likely because the `:` is a delimiter for the internal parser, and so literal values such as `2019-08-23T14:34:54.346Z` and `14:34:54.346Z` are separated into multiple tokens before matching the pattern.

      The colon can be escaped to prevent the unexpected tokenization, but then the literal string contains the backslash character before each colon, and again the pattern matching for the time and timestamp literal strings fails to match.

      This should be backported as far back as possible: the `Values` class was introduced in AK 1.1.0.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rhauch Randall Hauch
                Reporter:
                rhauch Randall Hauch
                Reviewer:
                Jason Gustafson
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: