Skip to content

Align the source and sink behaviours using the @attributes annotation #81

@pierre-borckmans

Description

@pierre-borckmans

Description:
Currently, the @attributes annotation cannot be used with sinks the same way they can be used with sources.

For instance, this mapping

@map(type='json', enclosing.element="$ @attributes(symbol = "company.symbol", price = "price", volume = "volume"))

would correctly parse the following json, when used on a source:

{
    "company" : {
        "symbol": "AAPL"
    },
    "price": 1234,
    "volume": 1000
}

but does not work when used one a sink, to produce the same json from for instance the following stream:

define stream TestStream(symbol string, price int, volume int)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions