You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2015/09/10 13:51:39 UTC

[Bug 58353] New: MATCH function return wrong result with match_type == -1

https://bz.apache.org/bugzilla/show_bug.cgi?id=58353

            Bug ID: 58353
           Summary: MATCH function return wrong result with match_type ==
                    -1
           Product: POI
           Version: 3.11-FINAL
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: regression
          Priority: P2
         Component: SS Common
          Assignee: dev@poi.apache.org
          Reporter: nechyporchuk@gmail.com

Overview
If you call MATCH arguments with lookupValue less then any possible in the
range and use SMALLEST_GTE match type then MATCH will return N/A instead of the
smallest number in the range.

Steps to Reproduce
1) Create column with 3 cells:
  3
  2
  1

2) In any other cell enter formula:
  =MATCH(0.9, A1:A3, -1)

Actual Result
The result will be N/A.

Expected Result
The result should be 3

Build Date & Hardware
2015 Sep 10 & Ubuntu 14.04.3 LTS

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 58353] MATCH function return wrong result with match_type == -1

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58353

Sergiy Nechyporchuk <ne...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nechyporchuk@gmail.com

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 58353] MATCH function return wrong result with match_type == -1

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58353

Dominik Stadler <do...@gmx.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |PatchAvailable

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 58353] MATCH function return wrong result with match_type == -1

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58353

Dominik Stadler <do...@gmx.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--- Comment #2 from Dominik Stadler <do...@gmx.at> ---
Can you maybe also add a unit test to class TestMatch which ensures that this
stays fixed in the future?

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 58353] MATCH function return wrong result with match_type == -1

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58353

Dominik Stadler <do...@gmx.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #4 from Dominik Stadler <do...@gmx.at> ---
Ah, sorry, I missed that. Applied via r1702535, thanks for the patch!

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 58353] MATCH function return wrong result with match_type == -1

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58353

Sergiy Nechyporchuk <ne...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW

--- Comment #3 from Sergiy Nechyporchuk <ne...@gmail.com> ---
I've already added this to the patch file. This line in the TestMatch:

    confirmInt(5, invokeMatch(new NumberEval(3), ae, MATCH_SMALLEST_GTE));

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 58353] MATCH function return wrong result with match_type == -1

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58353

--- Comment #1 from Sergiy Nechyporchuk <ne...@gmail.com> ---
Created attachment 33089
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=33089&action=edit
Patch for fixing bug with match function

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org