Class TimeBucketFunctions.TimeBucketFunction

java.lang.Object
org.apache.drill.exec.udfs.TimeBucketFunctions.TimeBucketFunction
All Implemented Interfaces:
DrillFunc, DrillSimpleFunc
Enclosing class:
TimeBucketFunctions

public static class TimeBucketFunctions.TimeBucketFunction extends Object implements DrillSimpleFunc
This function is used for facilitating time series analysis by creating buckets of time intervals. See https://blog.timescale.com/blog/simplified-time-series-analytics-using-the-time_bucket-function/ for usage. The function takes two arguments: 1. The timestamp in milliseconds 2. The desired bucket interval IN milliseconds The function returns a BIGINT of the nearest time bucket.
  • Constructor Details

    • TimeBucketFunction

      public TimeBucketFunction()
  • Method Details