Skip to content

Conversation

@feiyun0112
Copy link
Contributor

Invoking ElementwiseEquals on a PrimitiveDataFrameColumn obtained by accessing DataFrame["ColumnName"] throws NullReferenceException

#6829

@codecov
Copy link

codecov bot commented Sep 19, 2023

Codecov Report

Merging #6831 (9dd1d74) into main (d692751) will increase coverage by 0.01%.
Report is 1 commits behind head on main.
The diff coverage is 55.55%.

@@            Coverage Diff             @@
##             main    #6831      +/-   ##
==========================================
+ Coverage   68.99%   69.00%   +0.01%     
==========================================
  Files        1237     1237              
  Lines      253558   253563       +5     
  Branches    26542    26542              
==========================================
+ Hits       174944   174979      +35     
+ Misses      71663    71634      -29     
+ Partials     6951     6950       -1     
Flag Coverage Δ
Debug 69.00% <55.55%> (+0.01%) ⬆️
production 63.57% <50.00%> (+0.01%) ⬆️
test 88.86% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage
...lysis/PrimitiveDataFrameColumn.BinaryOperations.cs 50.00%
...st/Microsoft.Data.Analysis.Tests/DataFrameTests.cs 100.00%

{
throw new NotSupportedException();
}
return new BooleanDataFrameColumn(Name, (this as PrimitiveDataFrameColumn<U>)._columnContainer.ElementwiseEquals(column._columnContainer));
Copy link
Contributor

Choose a reason for hiding this comment

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

You shouldn't modify PrimitiveDataFrameColumn.BinaryOperations.cs directly. It's autogenerated from T4 template - PrimitiveDataFrameColumn.BinaryOperations.tt

Could you please modify a template file instead?

I would suggest this change to get required results:

image

@Dhaaboo
Copy link

Dhaaboo commented Sep 22, 2023

git

@ghost ghost locked as resolved and limited conversation to collaborators Oct 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants