Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enhancement(pulsar sink): introduce encoding schema and pulsar avro schema #5021

Merged
merged 15 commits into from
Dec 1, 2020

Conversation

KannarFr
Copy link
Contributor

@KannarFr KannarFr commented Nov 13, 2020

WIP

@KannarFr KannarFr changed the title Pulsar avro [WIP] Pulsar avro Nov 13, 2020
@KannarFr KannarFr changed the title [WIP] Pulsar avro [WIP] Introduce encoding schema and pulsar avro schema Nov 13, 2020
@KannarFr KannarFr changed the title [WIP] Introduce encoding schema and pulsar avro schema enhancement(sinks, pulsar): [WIP] Introduce encoding schema and pulsar avro schema Nov 13, 2020
@KannarFr
Copy link
Contributor Author

I'd like to make schema type depending on codec type so make encoding initialization parse schema if avro and use it in encode_event.

@KannarFr KannarFr changed the title enhancement(sinks, pulsar): [WIP] Introduce encoding schema and pulsar avro schema enhancement(sinks, pulsar): introduce encoding schema and pulsar avro schema Nov 13, 2020
@KannarFr KannarFr force-pushed the pulsar-avro branch 7 times, most recently from 884d735 to a5524cc Compare November 18, 2020 14:25
@KannarFr KannarFr changed the title enhancement(sinks, pulsar): introduce encoding schema and pulsar avro schema enhancement(pulsar sink): introduce encoding schema and pulsar avro schema Nov 18, 2020
src/sinks/pulsar.rs Outdated Show resolved Hide resolved
src/sinks/pulsar.rs Outdated Show resolved Hide resolved
src/sinks/pulsar.rs Outdated Show resolved Hide resolved
@KannarFr
Copy link
Contributor Author

Invesgatigating

Nov 19 15:46:53.922 ERROR sink{component_kind="sink" component_name=pulsar component_type=pulsar}: vector::topology: An error occurred that vector couldn't handle.

@KannarFr
Copy link
Contributor Author

@Hoverbear fixed!

@Hoverbear
Copy link
Contributor

Great! @KannarFr can you help me by fixing the DCO?

git rebase HEAD~9 --signoff
git push --force-with-lease origin pulsar-avro

I also noted cargo fmt must be run.

Cargo.toml Outdated Show resolved Hide resolved
src/sinks/pulsar.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@Hoverbear Hoverbear left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The rest of this PR looks good. :)

@KannarFr
Copy link
Contributor Author

Misscliked for the review request sorry JeanMertz (don't want to ping you more with @).

@KannarFr
Copy link
Contributor Author

@Hoverbear is ok? :)

@KannarFr
Copy link
Contributor Author

@Hoverbear rebased!

Copy link
Contributor

@Hoverbear Hoverbear left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I note clippy is mad. If you could fix that I think this is good to merge!

Signed-off-by: Alexandre DUVAL - @KannarFr <[email protected]>
Signed-off-by: Alexandre DUVAL - @KannarFr <[email protected]>
Signed-off-by: Alexandre DUVAL - @KannarFr <[email protected]>
Signed-off-by: Alexandre DUVAL - @KannarFr <[email protected]>
Signed-off-by: Alexandre DUVAL - @KannarFr <[email protected]>
Signed-off-by: Alexandre DUVAL - @KannarFr <[email protected]>
Signed-off-by: Alexandre DUVAL - @KannarFr <[email protected]>
Signed-off-by: Alexandre DUVAL - @KannarFr <[email protected]>
Signed-off-by: Alexandre DUVAL - @KannarFr <[email protected]>
Signed-off-by: Alexandre DUVAL - @KannarFr <[email protected]>
Signed-off-by: Alexandre DUVAL - @KannarFr <[email protected]>
Signed-off-by: Alexandre DUVAL - @KannarFr <[email protected]>
Signed-off-by: Alexandre DUVAL - @KannarFr <[email protected]>
@Hoverbear Hoverbear merged commit 10e4273 into vectordotdev:master Dec 1, 2020
mengesb pushed a commit to jacobbraaten/vector that referenced this pull request Dec 9, 2020
…chema (vectordotdev#5021)

* introduce schema encoding

Signed-off-by: Alexandre DUVAL - @KannarFr <[email protected]>

* introduce avro encoding in pulsar sink

Signed-off-by: Alexandre DUVAL - @KannarFr <[email protected]>

* add avro test

Signed-off-by: Alexandre DUVAL - @KannarFr <[email protected]>

* apply suggestion

Signed-off-by: Alexandre DUVAL - @KannarFr <[email protected]>

* put built schema to sink level

Signed-off-by: Alexandre DUVAL - @KannarFr <[email protected]>

* format

Signed-off-by: Alexandre DUVAL - @KannarFr <[email protected]>

* use Result

Signed-off-by: Alexandre DUVAL - @KannarFr <[email protected]>

* print error

Signed-off-by: Alexandre DUVAL - @KannarFr <[email protected]>

* format

Signed-off-by: Alexandre DUVAL - @KannarFr <[email protected]>

* make it internal_event

Signed-off-by: Alexandre DUVAL - @KannarFr <[email protected]>

* fmt

Signed-off-by: Alexandre DUVAL - @KannarFr <[email protected]>

* drop useless

Signed-off-by: Alexandre DUVAL - @KannarFr <[email protected]>

* clean

Signed-off-by: Alexandre DUVAL - @KannarFr <[email protected]>

* take care of clippy

Signed-off-by: Alexandre DUVAL - @KannarFr <[email protected]>

* add rand

Signed-off-by: Alexandre DUVAL - @KannarFr <[email protected]>
Signed-off-by: Brian Menges <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants