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

refactor: Run QTT using the testing tool #3180

Merged
merged 12 commits into from
Aug 10, 2019

Conversation

hjafarpour
Copy link
Contributor

This PR changes the QTT execution to use the testing tool. QTTs will be a special case for the testing tool where we only run one query!
The PR handles KSQL_WINDOWED_SESSION_KEY_LEGACY_CONFIG, however, we should remove it after resolving #3179 .
I also fixed a bug with the union types in the QTT where we did not distinguish between unions of two and more than two elements.
Also I fixed a bug in QTT where the map entries were not converted correctly into avro format.

Testing:
All QTT tests run correctly with the new flow.

Reviewer checklist

  • Ensure docs are updated if necessary. (eg. if a user visible feature is being added or changed).
  • Ensure relevant issues are linked (description should include text like "Fixes #")

@hjafarpour hjafarpour added this to the 5.4 milestone Aug 6, 2019
@hjafarpour hjafarpour requested a review from a team August 6, 2019 20:53
]
},
{
"name": "import session stream and group by",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This test is incorrect since at the moment kstreams does not support reading windowed key and aggregating on it!

{"topic": "S2", "key": "0 : Window{start=0 end=10000}", "value": "0 : Window{start=0 end=10000},1", "timestamp": 10000},
{"topic": "S2", "key": "1 : Window{start=10000 end=10000}", "value": "1 : Window{start=10000 end=10000},1", "timestamp": 10000},
{"topic": "S2", "key": "1 : Window{start=10000 end=10000}", "value": "1 : Window{start=10000 end=10000},2", "timestamp": 10000}
{"topic": "S2", "key": 0, "value": "0,0", "timestamp": 0, "window": {"start": 0, "end": 9223372036854775807, "type": "time"}},
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The end of the window should be Long.MAX_VALUE since in legacy mode we read this as a time window with no size.

@hjafarpour hjafarpour changed the title Run QTT using the testing tool refactor: Run QTT using the testing tool Aug 6, 2019
agavra
agavra previously requested changes Aug 7, 2019
Copy link
Contributor

@agavra agavra left a comment

Choose a reason for hiding this comment

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

I have quite a few inline comments trying to understand your changes, but the "core" of the change (what swaps us to actually use testing tool instead of the old path) LGTM.

@agavra agavra dismissed their stale review August 7, 2019 21:51

oops didn't mean to press Request Changes

@agavra agavra requested a review from a team August 7, 2019 21:51
Copy link
Contributor

@agavra agavra left a comment

Choose a reason for hiding this comment

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

LGTM! Some nits inline

@agavra agavra requested a review from a team August 9, 2019 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants