-
Notifications
You must be signed in to change notification settings - Fork 584
[client][rust] Align fixed-schema scans by column ID #3771
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1234,16 +1234,17 @@ impl LogFetcher { | |
| ); | ||
|
|
||
| let initial_schema_id = table_info.get_schema_id() as i16; | ||
| let resolver = Arc::new( | ||
| ReadContextResolver::new( | ||
| initial_schema_id, | ||
| read_context, | ||
| remote_read_context, | ||
| projected_fields, | ||
| ) | ||
| .with_schema_getter(Arc::clone(&schema_getter)) | ||
| .with_fixed_schema(fixed_schema), | ||
| ); | ||
| let mut resolver = ReadContextResolver::new( | ||
| initial_schema_id, | ||
| read_context, | ||
| remote_read_context, | ||
| projected_fields, | ||
| ) | ||
| .with_schema_getter(Arc::clone(&schema_getter)); | ||
| if fixed_schema { | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. with_fixed_schema runs even when projected_fields is Some, so fixed_target pairs a full-schema mapping with the projected arrow schema and row type from the initial context. Dead today since register_schema returns early under projection, but the two halves disagree and the only thing that would catch it is a per-batch Schema alignment has N indexes for K target fields. Mb skip the capture when projection is active? WDYT |
||
| resolver = resolver.with_fixed_schema(table_info.get_schema()); | ||
| } | ||
| let resolver = Arc::new(resolver); | ||
|
|
||
| let tmp_dir = TempDir::with_prefix("fluss-remote-logs")?; | ||
| let log_fetch_buffer = Arc::new(LogFetchBuffer::new(Arc::clone(&resolver))); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: ..._preserves_renamed_column_by_id loops [false, true], this one is local-only. Same loop here?