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: add DATE/TIME to connect integration test #7732

Merged
merged 6 commits into from
Jun 28, 2021

Conversation

jzaralim
Copy link
Contributor

Description

Check that DATE/TIME work with connect by adding them to the connect integration test.

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 #")

@jzaralim jzaralim requested a review from spena June 25, 2021 23:37
@jzaralim jzaralim requested a review from a team as a code owner June 25, 2021 23:37
Comment on lines 275 to 276
final RestResponse<List<StreamedRow>> queryTime = ksqlRestClient.makeQueryRequest("SELECT CAST(PAYLOAD AS STRING) FROM TIME_STREAM EMIT CHANGES LIMIT 1;", 1L);
final RestResponse<List<StreamedRow>> queryDate = ksqlRestClient.makeQueryRequest("SELECT CAST(PAYLOAD AS STRING) FROM DATE_STREAM EMIT CHANGES LIMIT 1;", 1L);
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't we wait on this PR until the string implicit casting is done automatically? Like the timestamp example.

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 was due to the REST API not converting Date/Time objects to String correctly. I ended up just adding that fix to this PR though, since it is a small fix.

@@ -35,6 +35,12 @@
<version>${io.confluent.ksql.version}</version>
</dependency>

<dependency>
<groupId>io.confluent.ksql</groupId>
<artifactId>ksqldb-engine-common</artifactId>
Copy link
Contributor Author

@jzaralim jzaralim Jun 28, 2021

Choose a reason for hiding this comment

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

Needed because SqlTimeTypes is in this package. It's a very lightweight package and only has one dependency on ksqldb-common though.

Copy link
Member

@spena spena left a comment

Choose a reason for hiding this comment

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

LGTM

@jzaralim jzaralim merged commit 1144965 into confluentinc:master Jun 28, 2021
@jzaralim jzaralim deleted the integration branch June 28, 2021 23:04
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