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

Fix copy on DictEncode #111

Merged
merged 1 commit into from
Jan 25, 2021
Merged

Fix copy on DictEncode #111

merged 1 commit into from
Jan 25, 2021

Conversation

quinnj
Copy link
Member

@quinnj quinnj commented Jan 25, 2021

Fixes #102. The issue comes up because DataFrames constructor tries to
make a copy of input columns by default when constructing; for
DictEncode, it's just a wrapper to signal that a column should be
copied, so we just make a shallow copy.

Fixes #102. The issue comes up because DataFrames constructor tries to
make a copy of input columns by default when constructing; for
DictEncode, it's just a wrapper to signal that a column should be
copied, so we just make a shallow copy.
@codecov
Copy link

codecov bot commented Jan 25, 2021

Codecov Report

Merging #111 (f5cd747) into main (e7cd867) will decrease coverage by 0.03%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #111      +/-   ##
==========================================
- Coverage   84.06%   84.03%   -0.04%     
==========================================
  Files          23       23              
  Lines        2698     2699       +1     
==========================================
  Hits         2268     2268              
- Misses        430      431       +1     
Impacted Files Coverage Δ
src/arraytypes/dictencoding.jl 81.10% <0.00%> (-0.65%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e7cd867...f5cd747. Read the comment docs.

@quinnj quinnj merged commit fd76613 into main Jan 25, 2021
@quinnj quinnj deleted the jq/copyde branch January 25, 2021 18:39
tanmaykm pushed a commit to tanmaykm/arrow-julia that referenced this pull request Apr 7, 2021
Fixes apache#102. The issue comes up because DataFrames constructor tries to
make a copy of input columns by default when constructing; for
DictEncode, it's just a wrapper to signal that a column should be
copied, so we just make a shallow copy.
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.

Error constructing a DataFrame with a dict-encoded column
1 participant