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

TEST: adding stream-table join #375

Merged
merged 5 commits into from
Oct 17, 2017
Merged

TEST: adding stream-table join #375

merged 5 commits into from
Oct 17, 2017

Conversation

bluemonk3y
Copy link

@bluemonk3y bluemonk3y commented Oct 16, 2017

#375 - adding missing integration tests

@bluemonk3y bluemonk3y requested a review from dguy October 16, 2017 10:23
Copy link
Contributor

@dguy dguy left a comment

Choose a reason for hiding this comment

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

Just a few minor comments

@@ -17,8 +17,8 @@
package io.confluent.ksql;

import io.confluent.ksql.metastore.MetaStore;
import io.confluent.ksql.util.KafkaTopicClientImpl;
import io.confluent.ksql.util.KsqlConfig;
import io.confluent.ksql.util.*;
Copy link
Contributor

Choose a reason for hiding this comment

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

you probably need to change your import settings?

Copy link
Author

Choose a reason for hiding this comment

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

err - yep - will do

result.put(key, recordMetadataFuture.get(TEST_RECORD_FUTURE_TIMEOUT_MS, TimeUnit.MILLISECONDS));
}
producer.close();

return result;
}

private ProducerRecord<String, GenericRow> buildRecord(String topicName, Long timestamp, Map.Entry<String, GenericRow> recordEntry, String key) {
ProducerRecord<String, GenericRow> producerRecord;
if (timestamp == null) {
Copy link
Contributor

Choose a reason for hiding this comment

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

You don't need this. Can just pass in null for the timestamp

@@ -65,7 +65,7 @@ public void shouldAggregateTumblingWindow() throws Exception {

// not really required - but lets mess with ms
Thread.sleep(100);
testHarness.publishTestData(topicName, dataProvider);
testHarness.publishTestData(topicName, dataProvider, null);
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you get rid of the sleeps in this class now?

Copy link
Author

Choose a reason for hiding this comment

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

good spot

@bluemonk3y bluemonk3y changed the title adding stream-table join TEST: adding stream-table join Oct 16, 2017
@bluemonk3y
Copy link
Author

bluemonk3y commented Oct 16, 2017

@dguy - how does that look? we now control time and the future.

@@ -64,8 +67,7 @@ public void after() throws Exception {
public void shouldAggregateTumblingWindow() throws Exception {

// not really required - but lets mess with ms
Copy link
Contributor

Choose a reason for hiding this comment

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

Are these comments still relevant?

Copy link
Author

Choose a reason for hiding this comment

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

good point!

Copy link
Contributor

@dguy dguy left a comment

Choose a reason for hiding this comment

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

One minor comment otherwise LGTM

@bluemonk3y
Copy link
Author

retest this please

@bluemonk3y bluemonk3y merged commit 36829c3 into confluentinc:4.0.x Oct 17, 2017
@bluemonk3y bluemonk3y deleted the 4.0.x-TEST-stream-table-join-test branch October 17, 2017 09:03
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