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(frontend): simplify bind_columns_from_source #14335

Merged
merged 11 commits into from
Jan 4, 2024

Conversation

xxchan
Copy link
Member

@xxchan xxchan commented Jan 3, 2024

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

What's changed and what's your intention?

motivation: to make code--

Can review commit by commit, so the correctness might be more easy to verify.

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.

@xxchan xxchan added ci/run-main-cron ci/run-backwards-compat-tests Run backwards compatibility tests in your PR. labels Jan 3, 2024
Comment on lines +331 to +341
stream_source_info.use_schema_registry = protobuf_schema.use_schema_registry;
stream_source_info.row_schema_location = protobuf_schema.row_schema_location.0.clone();
stream_source_info.proto_message_name = protobuf_schema.message_name.0.clone();
stream_source_info.key_message_name =
get_key_message_name(&mut format_encode_options_to_consume);
stream_source_info.name_strategy =
name_strategy.unwrap_or(PbSchemaRegistryNameStrategy::Unspecified as i32);

Some(
extract_protobuf_table_schema(
&protobuf_schema,
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 believe protobuf and avro can also reuse a lot of code, however extract_protobuf_table_schema looks strange and I'm not brave enough to change it in this PR, which contains only equivalent rewrites. 🤡

@xxchan
Copy link
Member Author

xxchan commented Jan 3, 2024

Oops

@xxchan
Copy link
Member Author

xxchan commented Jan 3, 2024

Why nexmark-backwards-compact failed? It should not be related with this. 🤡

image

@xxchan
Copy link
Member Author

xxchan commented Jan 3, 2024

For main-cron, only background_ddl recovery test (deterministic simulation) failed, but it seems also to fail in daily pipeline, so I will ignore this..

@xxchan
Copy link
Member Author

xxchan commented Jan 3, 2024

BTW, Backwards compatibility test failed in PR pipeline, but succeeded in main-cron pipeline... This is so strange.

@xxchan
Copy link
Member Author

xxchan commented Jan 3, 2024

-   1000	1001	10465998	2015-07-15 00:00:22.005
+   1000 1001 10465998 2015-07-15 00:00:22.005
+   1000 1001 10465998 2015-07-15 00:00:22.005

It seems it's delete not handled correctly.

@xxchan
Copy link
Member Author

xxchan commented Jan 3, 2024

It seems include ./delete.slt.part is not included..?

image

Copy link
Contributor

@tabVersion tabVersion left a comment

Choose a reason for hiding this comment

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

thanks for the cleaningbirdbox

Copy link
Contributor

-   1000	1001	10465998	2015-07-15 00:00:22.005
+   1000 1001 10465998 2015-07-15 00:00:22.005
+   1000 1001 10465998 2015-07-15 00:00:22.005

It seems it's delete not handled correctly.

Oops, I thought it was all about spacing.
But the logic here does not involve handling delete

@xxchan
Copy link
Member Author

xxchan commented Jan 4, 2024

I think it's sqllogictest (risinglightdb/sqllogictest-rs#203) or the backwards-compat-tests's problem. But I don't know why only my PR triggered it 🤔

@xxchan
Copy link
Member Author

xxchan commented Jan 4, 2024

I've reproduced this #14354 🤣

@xxchan xxchan removed the ci/run-backwards-compat-tests Run backwards compatibility tests in your PR. label Jan 4, 2024
@xxchan xxchan force-pushed the xxchan/encouraging-reptile branch from 636f1f0 to 29233bb Compare January 4, 2024 06:49
@xxchan xxchan added this pull request to the merge queue Jan 4, 2024
Merged via the queue into main with commit 2bdfae2 Jan 4, 2024
30 of 31 checks passed
@xxchan xxchan deleted the xxchan/encouraging-reptile branch January 4, 2024 08:11
Li0k pushed a commit that referenced this pull request Jan 10, 2024
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.

3 participants