HBase
  1. HBase
  2. HBASE-6042

FirstKeyOnlyFilter does not work in conjunction with getColumns()

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Invalid
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      Given the implementation of ScanQueryMatcher, we check
      filter.filterKeyValue()

      before determining weather we are going to include the KV in the
      result or not. Thus, if the scan/get were to specify columns other
      than the very first column in the row, they get nothing because
      the filter removes everything else.

        Activity

        Amitanand Aiyer created issue -
        Hide
        Anoop Sam John added a comment -

        @Amitanand Aiyer
        What is the exact usecase that you are looking for?
        As per the javadoc for the FirstKeyOnlyFilter, it can be used for only getting the 1st KV of the row.

        /**
         * A filter that will only return the first KV from each row.
         * <p>
         * This filter can be used to more efficiently perform row count operations.
         */
        

        When you can specify the exact column(s) that you want in the result, why to specify more than one column and have a filter to select only the 1st column among those? Pls correct me if my understanding abt your problem is wrong

        Show
        Anoop Sam John added a comment - @Amitanand Aiyer What is the exact usecase that you are looking for? As per the javadoc for the FirstKeyOnlyFilter, it can be used for only getting the 1st KV of the row. /** * A filter that will only return the first KV from each row. * <p> * This filter can be used to more efficiently perform row count operations. */ When you can specify the exact column(s) that you want in the result, why to specify more than one column and have a filter to select only the 1st column among those? Pls correct me if my understanding abt your problem is wrong
        Cosmin Lehene made changes -
        Field Original Value New Value
        Labels delete
        Cosmin Lehene made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Invalid [ 6 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        964d 17h 7m 1 Cosmin Lehene 07/Jan/15 15:17

          People

          • Assignee:
            Unassigned
            Reporter:
            Amitanand Aiyer
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development