This problem was earlier fixed by the patch for MDEV 33344. Adding a test case only.
Attach a file by drag & drop or click to upload