Skip to content

Commit

Permalink
atf: support wildcard schema patches, apply one for salesforce reduction
Browse files Browse the repository at this point in the history
  • Loading branch information
mdibaiee committed Aug 3, 2023
1 parent f806ef4 commit d539f09
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"reduce": {
"strategy": "merge"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,12 @@ impl AirbyteSourceInterceptor {
"{}/{}{}",
STREAM_PATCH_DIR_NAME, recommended_name, STREAM_PATCH_SUFFIX
))
.or_else(|_| {
std::fs::read_to_string(format!(
"{}/*{}",
STREAM_PATCH_DIR_NAME, STREAM_PATCH_SUFFIX
))
})
.ok()
.map(|p| sj::from_str::<sj::Value>(&p))
.transpose()?;
Expand Down

0 comments on commit d539f09

Please sign in to comment.