[MDEV-32006] CONNECT engine VIRTUAL and PERSISTENT columns broken for MySQL source Created: 2023-08-24  Updated: 2023-10-02

Status: Open
Project: MariaDB Server
Component/s: Storage Engine - Connect
Affects Version/s: 11.2.1
Fix Version/s: 11.2

Type: Bug Priority: Major
Reporter: Brad Lanier Assignee: Andrew Hutchings
Resolution: Unresolved Votes: 1
Labels: None
Environment:

Any



 Description   

When using MySQL source table for CONNECT engine, VIRTUAL and PERSISTENT columns do not work as designed. The VIRTUAL column is required to be returned in the MySQL query result set or the table query fails.

For a VIRTUAL column, the work around is to ALIAS the column in the query with a supplied NULL value. When this is done, the CONNECT table works substituting the VIRTUAL calculation for the query supplied NULL. If ANY value other than NULL is specified in the source query, the specified ALIAS value takes precedence for the column value over the VIRTUAL calculated value.

Following the work around for a PERSISTENT column does not work at all. The NULL will take precedence over the Calculated value.

This was tested using a VarChar column definition.



 Comments   
Comment by Brad Lanier [ 2023-08-31 ]

Changed priority to MAJOR since there is no work-around for PERSISTENT columns.

Generated at Thu Feb 08 10:28:06 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.