HBase
  1. HBase
  2. HBASE-6042

FirstKeyOnlyFilter does not work in conjunction with getColumns()

    Details

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

      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

        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

          People

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

            Dates

            • Created:
              Updated:

              Development