-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cdctest: fix fingerprint validator for most types
Previously, fingerprint validator parses json message and passes the parsed data into argument $1 for UPSERT, INSERT. This usually works, but gojson.Unmarshal does not work well with all data types. This patch changes fingerprint validator to parse the data by referring to the table info for their column types and parses it using datums. Note that this workaround doesn't support user-created types enums due to its lack of OidToType utility. Resolves: #134159 Release note: none
- Loading branch information
Showing
3 changed files
with
147 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters