https://pinot.apache.org/ logo
Join Slack
Powered by
# custom-aggregators
  • k

    Kishore G

    04/30/2020, 8:46 AM
    you can work on the optimization in the next iteration, establish a baseline
  • d

    Damiano

    04/30/2020, 8:46 AM
    yes you are right
  • d

    Damiano

    04/30/2020, 8:46 AM
    i think basically i should look at the strcture like a tree with leafs
  • k

    Kishore G

    04/30/2020, 8:47 AM
    yeah, you can look at it that way
  • k

    Kishore G

    04/30/2020, 8:47 AM
    its just an encoding algorithm
  • d

    Damiano

    04/30/2020, 8:48 AM
    so for each point i need to understand if i need to extend or not a range...or just adjust the max or the min value onlnie
  • d

    Damiano

    04/30/2020, 8:48 AM
    ok
  • d

    Damiano

    04/30/2020, 8:48 AM
    sounds interesting
  • d

    Damiano

    04/30/2020, 8:48 AM
    🙂
  • k

    Kishore G

    04/30/2020, 8:49 AM
    you dont need to maintain min/max in this case
  • k

    Kishore G

    04/30/2020, 8:49 AM
    this is a simple encoding/compression problem
  • k

    Kishore G

    04/30/2020, 8:49 AM
    think about how would compress a list of sorted integers
  • k

    Kishore G

    04/30/2020, 8:50 AM
    1,2,3,4,5,10, 14,15,16 ...
  • k

    Kishore G

    04/30/2020, 8:50 AM
    [1,5],10,[14-16]
  • k

    Kishore G

    04/30/2020, 8:52 AM
    talk tomorrow
  • k

    Kishore G

    04/30/2020, 8:53 AM
    enjoy 🙂
  • d

    Damiano

    04/30/2020, 8:54 AM
    yeah got it
  • d

    Damiano

    04/30/2020, 8:54 AM
    see you tomorrow!
  • d

    Damiano

    04/30/2020, 8:57 AM
    thanks
  • d

    Damiano

    04/30/2020, 8:59 AM
    the "timestamps" factor is imoprtant so i need to hold it somehow too...however..ok got it
  • d

    Damiano

    05/01/2020, 9:02 AM
    hello
  • d

    Damiano

    05/01/2020, 9:02 AM
    i did the code with python...just a rough code but it works as expected.. i surelly need to optimize it and then translate it to java
  • d

    Damiano

    05/01/2020, 9:03 AM
    i share the code, few minutes
  • d

    Damiano

    05/01/2020, 9:06 AM
    https://paste.ofcode.org/fbdVSyqaHqm89cfebAtFGF
  • d

    Damiano

    05/01/2020, 9:06 AM
    i shuffle the docs list and then see if the output is the same..
  • d

    Damiano

    05/01/2020, 9:07 AM
    sure...it is rough without comments too 🙂 but ... however i now can handle range from completely random data and without inner loops, just one.
  • d

    Damiano

    05/01/2020, 9:12 AM
    so for now i try to 1. clean the code 2. optimize this code and then i will go with java.
  • k

    Kishore G

    05/27/2020, 5:18 PM
    @User has left the channel
  • b

    Brad

    12/11/2021, 6:19 PM
    @User has left the channel
  • j

    Juraj Pohanka

    07/23/2022, 12:57 PM
    @Juraj Pohanka has left the channel