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(source): refactor upsert avro tests #17044

Merged
merged 3 commits into from
Jun 3, 2024

Conversation

xxchan
Copy link
Member

@xxchan xxchan commented May 31, 2024

I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.

What's changed and what's your intention?

  • move to source_inline and use risedev env vars to be easier to run locally
  • put setup script in slt
  • merge related stuff into one slt, and make it more readable

Checklist

  • I have written necessary rustdoc comments
  • I have added necessary unit tests and integration tests
  • I have added test labels as necessary. See details.
  • I have added fuzzing tests or opened an issue to track them. (Optional, recommended for new SQL features Sqlsmith: Sql feature generation #7934).
  • My PR contains breaking changes. (If it deprecates some features, please create a tracking issue to remove them in the future).
  • All checks passed in ./risedev check (or alias, ./risedev c)
  • My PR changes performance-critical code. (Please run macro/micro-benchmarks and show the results.)
  • My PR contains critical fixes that are necessary to be merged into the latest release. (Please check out the details)

Documentation

  • My PR needs documentation updates. (Please use the Release note section below to summarize the impact on users)

Release note

If this PR includes changes that directly affect users or other significant modifications relevant to the community, kindly draft a release note to provide a concise summary of these changes. Please prioritize highlighting the impact these changes will have on users.

Copy link
Member Author

xxchan commented May 31, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @xxchan and the rest of your teammates on Graphite Graphite

@github-actions github-actions bot added the component/test Test related issue. label May 31, 2024
@xxchan xxchan marked this pull request as ready for review May 31, 2024 08:51
@xxchan xxchan force-pushed the 05-31-test_source_refactor_upsert_avro_tests branch from 274245b to b9d8937 Compare May 31, 2024 08:56
Comment on lines +39 to +48
# TODO: Uncomment this when we add test data kafka key with format `"ID":id`
# statement ok
# CREATE TABLE upsert_avro_json (
# PRIMARY KEY("ID")
# )
# WITH (
# connector = 'kafka',
# properties.bootstrap.server = '${RISEDEV_KAFKA_BOOTSTRAP_SERVERS}',
# topic = 'upsert_avro_json')
# FORMAT UPSERT ENCODE AVRO (schema.registry = '${RISEDEV_SCHEMA_REGISTRY_URL}');
Copy link
Member Author

Choose a reason for hiding this comment

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

I don't actually understand what's the commented test mean. Just kept it

Copy link
Contributor

Choose a reason for hiding this comment

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

@yuhao-su #13023 Do you still remember why we commented out the test case?

Copy link
Contributor

@yuhao-su yuhao-su Jun 3, 2024

Choose a reason for hiding this comment

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

We used to parse kafka key with Json format. That's why it required the key looks like "ID": id. But now we parse kafka key as bytes, so I think we can uncomment this now.

Copy link
Contributor

Choose a reason for hiding this comment

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

try enable in #17062

@xxchan xxchan force-pushed the 05-31-test_source_refactor_upsert_avro_tests branch from 2347104 to 4d34ffc Compare May 31, 2024 12:02
@xxchan xxchan force-pushed the 05-31-test_source_refactor_upsert_avro_tests branch from 4d34ffc to 4c9169b Compare June 3, 2024 02:32
@xxchan xxchan requested a review from a team as a code owner June 3, 2024 02:32
@xxchan xxchan changed the base branch from 05-30-refactor_source_refactor_access to main June 3, 2024 02:32
@xxchan xxchan requested review from BugenZhao, tabVersion and xiangjinwu and removed request for a team June 3, 2024 02:35
@xxchan xxchan added this pull request to the merge queue Jun 3, 2024
Merged via the queue into main with commit e47296c Jun 3, 2024
29 of 30 checks passed
@xxchan xxchan deleted the 05-31-test_source_refactor_upsert_avro_tests branch June 3, 2024 03:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/test Test related issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants