[MCOL-4681] Fix install_mcs_mysql.sh.in to do CREATE FUNCTION instead of INSERT INTO mysql.func Created: 2021-04-16 Updated: 2021-07-01 Resolved: 2021-06-25 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | installation |
| Affects Version/s: | None |
| Fix Version/s: | 6.1.1 |
| Type: | Task | Priority: | Major |
| Reporter: | Alexander Barkov | Assignee: | Daniel Lee (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||
| Sprint: | 2021-9 | ||||||||||||||||
| Description |
|
install_mcs_mysql.sh.in currently uses direct INSERTs to populate mysql.func, e.g.:
This is a not good way to install UDFs and UDAFs:
The correct way to install UDFs and UDAFs it to use CREATE FUNCTION and CREATE AGGREGATE FUNCTION statements.
|
| Comments |
| Comment by Alexander Barkov [ 2021-04-16 ] | ||||||
|
It appeared that ColumnStore used to have CREATE FUNCTION statements instead of direct INSERTs. CREATE FUNCTION statements were replaced to INSERTs in this commit:
This sound strange. MariaDB requires the same privileges to do CREATE (UDF) FUNCTION and to INSERT into mysql.proc: https://mariadb.com/kb/en/create-function-udf/ says:
| ||||||
| Comment by David Hall (Inactive) [ 2021-06-24 ] | ||||||
|
QA: To test, create a fresh install and attempt a number of functions as listed above. If they get CREATEd, the functions should work. | ||||||
| Comment by Daniel Lee (Inactive) [ 2021-06-25 ] | ||||||
|
Build verified: 6.1.1 ( Drone #2640 ) |