You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Excel appears to have limited support for mixed string and number types in a single column:
As mentioned in #1755 Excel's support for this seems limited. It doesn't work at all in reverse order for example.
A test and comment was left in code in #1764
Epplus in its current solution does not compare strings and numbers other than that it considers them not-equal in the comparer returning -1. This breaks the binary search in difficult to predict ways.
This could be handled better via splitting ranges/entries somehow and only checking one depending on if the lookup_value is a string literal or a number.
The question is, how should EPPLUS behave compared to Excel in this? Do we implement buggy behaviour? Do we do our own fully functional solution? Do we limit scope to non-mixed types?
Investigation and internal discussion is required.
The text was updated successfully, but these errors were encountered:
Excel appears to have limited support for mixed string and number types in a single column:
![bild](https://private-user-images.githubusercontent.com/122265629/395510761-4cc6adc6-cdf2-495c-bb35-3986381bf77a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMzQ1MzcsIm5iZiI6MTczOTMzNDIzNywicGF0aCI6Ii8xMjIyNjU2MjkvMzk1NTEwNzYxLTRjYzZhZGM2LWNkZjItNDk1Yy1iYjM1LTM5ODYzODFiZjc3YS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMlQwNDIzNTdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT04ZDU1ZjNjZTc5MmNlOWRmN2U0MDdkMDU2YjNjZmY2MWU1YTViYWFiN2RkZTI3OWQ5ZDEwODg5ZWU0OGYwY2Q3JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.T10FisNdwe6er-Yvog64s1jJe6pxm7547I0HhUIWOcw)
As mentioned in #1755 Excel's support for this seems limited. It doesn't work at all in reverse order for example.
A test and comment was left in code in #1764
Epplus in its current solution does not compare strings and numbers other than that it considers them not-equal in the comparer returning -1. This breaks the binary search in difficult to predict ways.
This could be handled better via splitting ranges/entries somehow and only checking one depending on if the
lookup_value
is a string literal or a number.The question is, how should EPPLUS behave compared to Excel in this? Do we implement buggy behaviour? Do we do our own fully functional solution? Do we limit scope to non-mixed types?
Investigation and internal discussion is required.
The text was updated successfully, but these errors were encountered: