fix: Don't use _position_to_field_name#3917
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3917 +/- ##
==========================================
+ Coverage 75.35% 78.45% +3.09%
==========================================
Files 767 768 +1
Lines 103619 97902 -5717
==========================================
- Hits 78080 76807 -1273
+ Misses 25539 21095 -4444
🚀 New features to boost your workflow:
|
|
Hey @Fokko, thanks for bringing this up! From what I can tell, the I'm okay with doing that, but we should get it in with these changes. Would you mind changing the version requirement in pyproject.toml? |
|
@kevinzwang Thanks, that's a great point! I wouldn't recommend anyone using 0.4.0 anyway, I've bumped it to |
11701c8 to
ca7e6e1
Compare
kevinzwang
left a comment
There was a problem hiding this comment.
Looks great! thanks again for the help
Don't use internal fields :) I want to remove this one in apache/iceberg-python#1768. It should be okay since the `Record` also has a `__len__`.
This aligns the implementation with Java. We had the keywords there mostly for the tests, but they should not be used, and it seems like that's already the case :'( I was undecided if the costs of this PR (all the changes), are worth it, but I see more PRs using the Record in a bad way (example #1743) that might lead to very subtle bugs where the position might sometime change based on the ordering of the dict. Blocked by Eventual-Inc/Daft#3917
This aligns the implementation with Java. We had the keywords there mostly for the tests, but they should not be used, and it seems like that's already the case :'( I was undecided if the costs of this PR (all the changes), are worth it, but I see more PRs using the Record in a bad way (example apache#1743) that might lead to very subtle bugs where the position might sometime change based on the ordering of the dict. Blocked by Eventual-Inc/Daft#3917
Don't use internal fields :)
I want to remove this one in apache/iceberg-python#1768. It should be okay since the
Recordalso has a__len__.