https://pinot.apache.org/ logo
Join Slack
Powered by
# troubleshooting
  • k

    Kishore G

    05/04/2020, 11:24 PM
    hi
  • d

    Damiano

    05/04/2020, 11:25 PM
    i am debugging the avg aggregator AvgAggregationFunction, using the following query i see no call for extractFinalResult() method, this is the query: 
    select AVG(doules) as foo from baseballStats
  • s

    Sidd

    05/04/2020, 11:26 PM
    Can you put a breakpoint in AggregationDataTableReducer?
  • s

    Sidd

    05/04/2020, 11:27 PM
    put a breakpoint in function
    Copy code
    reduceToAggregationResult
  • d

    Damiano

    05/04/2020, 11:27 PM
    ok
  • s

    Sidd

    05/04/2020, 11:27 PM
    Also put a breakpoint in BrokerReduceService in function
    Copy code
    reduceOnDataTable
  • d

    Damiano

    05/04/2020, 11:28 PM
    ok
  • d

    Damiano

    05/04/2020, 11:29 PM
    done
  • s

    Sidd

    05/04/2020, 11:29 PM
    Now let's step through the code from the point BrokerReduceService breakpoint is hit
  • d

    Damiano

    05/04/2020, 11:30 PM
    Copy code
    first call for: reduceOnDataTable gives me dataTableMap.size() == 0
  • s

    Sidd

    05/04/2020, 11:30 PM
    ok so that is the problem
  • s

    Sidd

    05/04/2020, 11:31 PM
    is this a local unit test, integration test?
  • d

    Damiano

    05/04/2020, 11:31 PM
    no i am starting Pinot using Quickstart.java running that file in debug mode form IntelliJ
  • d

    Damiano

    05/04/2020, 11:32 PM
    I have downloaded Pinot from git (following the doc)
  • s

    Sidd

    05/04/2020, 11:32 PM
    Let's put a breakpoint in IntermediateResultsBlock.java in function
    Copy code
    getDataTable
  • d

    Damiano

    05/04/2020, 11:34 PM
    ok
  • d

    Damiano

    05/04/2020, 11:35 PM
    _table == null
  • s

    Sidd

    05/04/2020, 11:36 PM
    let's do a call
  • s

    Sidd

    05/04/2020, 11:36 PM
    bluejeans/zoom
  • d

    Damiano

    05/04/2020, 11:36 PM
    it executes "return getProcessingExceptionsDataTable();"
  • s

    Sidd

    05/04/2020, 11:37 PM
    ok so there are one or more exceptions seen by the server during execution
  • d

    Damiano

    05/04/2020, 11:37 PM
    @Sidd pardon, i cannot have a call at the moment, it is 01:40 AM here hehe...sorry
  • s

    Sidd

    05/04/2020, 11:38 PM
    np.. _table can be null since you are doing an aggregation only query
  • d

    Damiano

    05/04/2020, 11:38 PM
    ok
  • s

    Sidd

    05/04/2020, 11:38 PM
    only for group by queries, it should be non null
  • s

    Sidd

    05/04/2020, 11:39 PM
    Put a break point in AggregationOperator getNextBlock(). Also, do you see any exceptions in the server log?
  • s

    Sidd

    05/04/2020, 11:39 PM
    Copy code
    "return getProcessingExceptionsDataTable();"
  • s

    Sidd

    05/04/2020, 11:40 PM
    the above should show you the non empty list of processing exceptions
  • s

    Sidd

    05/04/2020, 11:40 PM
    in debug mode
  • d

    Damiano

    05/04/2020, 11:41 PM
    ok one moment
1...959697...166Latest