[MCOL-818] investigate and document type conversions in UDFs and UDAFs Created: 2017-07-18  Updated: 2023-07-02  Resolved: 2023-07-02

Status: Closed
Project: MariaDB ColumnStore
Component/s: N/A
Affects Version/s: 1.0.9
Fix Version/s: Icebox

Type: Task Priority: Major
Reporter: David Thompson (Inactive) Assignee: Leonid Fedorov
Resolution: Won't Do Votes: 0
Labels: None


 Description   

In coming up with a reference example UDF against 1.0.9 code, i created a json pointer example. For the mariadb server side implementation you must declare the return type so i made this string and you have one method implementation. The distributed columnstore udf requires you to implement a variation per type. In my case clearly the string type was needed and mostly used. I tried varying permutations and i found that in this case i only really needed to implement the getDouble and getBoolean variants when using the function in a where clause where the right side was a constant or other numeric / boolean column. It's unclear where the decision point is on determining the type but always choosing double seems odd. We should clearly map out for each case what the conversion logic is and possibly address any case we determine as a bug and document this better.



 Comments   
Comment by Todd Stoffel (Inactive) [ 2023-07-02 ]

The "create date" on this ticket is pre-convergence with MariaDB server. If the issue still exists in a modern version of the engine/plugin please submit a new ticket.

Generated at Thu Feb 08 02:24:03 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.