-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure extract-key precedes extract-headers when both transforms are …
…specified (#1247)
- Loading branch information
Showing
3 changed files
with
180 additions
and
93 deletions.
There are no files selected for viewing
69 changes: 69 additions & 0 deletions
69
...s/io/aklivity/zilla/specs/binding/kafka/config/cache.options.extract.key.and.headers.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# | ||
# Copyright 2021-2023 Aklivity Inc. | ||
# | ||
# Aklivity licenses this file to you under the Apache License, | ||
# version 2.0 (the "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at: | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
# License for the specific language governing permissions and limitations | ||
# under the License. | ||
# | ||
|
||
--- | ||
name: test | ||
catalogs: | ||
test0: | ||
type: test | ||
options: | ||
id: 1 | ||
schema: | | ||
{ | ||
"type": "object", | ||
"properties": { | ||
"correlationId": { | ||
"type": "integer" | ||
}, | ||
"status": { | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"correlationId", | ||
"status" | ||
] | ||
} | ||
bindings: | ||
app0: | ||
type: kafka | ||
kind: cache_client | ||
routes: | ||
- exit: cache0 | ||
when: | ||
- topic: test | ||
cache0: | ||
type: kafka | ||
kind: cache_server | ||
options: | ||
topics: | ||
- name: test | ||
transforms: | ||
- extract-key: ${message.key.id} | ||
- extract-headers: | ||
correlation-id: ${message.value.correlationId} | ||
value: | ||
model: test | ||
capability: read | ||
length: 12 | ||
catalog: | ||
test0: | ||
- id: 1 | ||
routes: | ||
- exit: app1 | ||
when: | ||
- topic: test | ||
|
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