nikunjbhartia opened a new issue, #145:
URL: https://github.com/apache/datasketches-bigquery/issues/145

   Can we handle nulls passed as sketches in sketch functions more gracefully ? 
   Current error messages are confusing and unless we dig deeper into a sql 
query and intermediate data, its difficult to find root cause of the error. 
   
   Example: 
   select bqutil.datasketches.theta_sketch_a_not_b(NULL, NULL) 
   
   returns error: `BindingError: Cannot pass non-string to std::string at 
UDF$1(BYTES, BYTES, INT64) line 6, columns 25-26`
   
   
   select bqutil.datasketches.theta_sketch_union(NULL, NULL)
   
   returns : `BindingError: Cannot pass non-string to std::string at 
UDF$1(BYTES, BYTES, INT64, INT64) line 12, columns 25-26`
   
   Possible handling: 
   - Can nulls be treated as a no-op and we return null ?
   Or
   - Return more meaningful error message


-- 
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.

To unsubscribe, e-mail: dev-unsubscr...@datasketches.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@datasketches.apache.org
For additional commands, e-mail: dev-h...@datasketches.apache.org

Reply via email to