Skip to content

fix: remove todo from indexed field key - #1667

Open
BharatDeva wants to merge 1 commit into
apache:mainfrom
BharatDeva:fix/get-indexed-field-key-error-552
Open

fix: remove todo from indexed field key#1667
BharatDeva wants to merge 1 commit into
apache:mainfrom
BharatDeva:fix/get-indexed-field-key-error-552

Conversation

@BharatDeva

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Closes #552.

Rationale for this change

Issue #552 tracks replacing remaining todo!() calls with explicit errors. The only remaining todo!() was in PyGetIndexedField::key, where unsupported list-index and list-range field access could panic instead of returning a Python error.

What changes are included in this PR?

This updates PyGetIndexedField::key to keep returning the struct field key for NamedStructField, and to return the existing unsupported-variant error for list index and list range access.

Are there any user-facing changes?

No API change is intended. This only replaces an internal panic path with an explicit Python error for unsupported field access forms.

Testing

  • cargo fmt --check
  • wsl bash -lc "cd /mnt/c/Users/bhara/OneDrive/Desktop/Python/datafusion-python && cargo check -p datafusion-python"
  • rg -n "todo!\\(" crates/core/src -g "*.rs" returned no matches

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.

Remove all uses of todo!

1 participant