Class TimeBucketFunctions.TimeBucketNSFunction

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

public static class TimeBucketFunctions.TimeBucketNSFunction 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 nanoseconds 2. The desired bucket interval IN MILLISECONDS The function returns a BIGINT of the nearest time bucket.
  • Constructor Details

    • TimeBucketNSFunction

      public TimeBucketNSFunction()
  • Method Details