cgivre opened a new pull request #2040: DRILL-7668: Allow Time Bucket Function 
to Accept Floats and Timestamps
URL: https://github.com/apache/drill/pull/2040
 
 
   # [DRILL-7668](https://issues.apache.org/jira/browse/DRILL-7668): Allow Time 
Bucket Function to Accept Floats and Timestamps
   
   ## Description
   
   Drill has a function `time_bucket()` which facilitates time series analysis. 
This PR extends this function to accept `FLOAT8` and `TIMESTAMPS` as input.  
Floats are typically not used for timestamps, however in the event that the 
data is coming from imperfect files, the numbers may be read as floats and 
hence require casting in queries.  This PR makes this easier. 
   
   ## Documentation
   `time_bucket()` function now will accept a `timestamp` or `float8` as an 
argument for the time.
   
   ## Testing
   Added two unit tests for the new data types.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to