When creating a view using the following join:
...on(mbrcontains(`a`.`b`,geometryfromwkb(point(`y`.`z`,0))))
|
it changes to:
...on(mbrcontains(`a`.`b`,st_geometryfromwkb(st_point(`y`.`z`,0))))
|
which will not work since st_point is not a valid function.
When a query is executed with the same SQL as the view definition, it works as expected.
Three files are attached for duplicating the issue:
- test_setup.sql - Setup the test DB with tables, views and sample data
- test_query.sql - execute a query with the same SQL as the view in question
- test_create_view.sql - Create a view which is modified upon save as described above.
- relates to
-
MDEV-7512
GIS: ST_ synonyms for functions are not consistent
-
-
Closed
{"report":{"fcp":792.7000000476837,"ttfb":149,"pageVisibility":"visible","entityId":50507,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"613e491f-b803-4b85-8e51-37cb1952bb97","navigationType":0,"readyForUser":869.2999999523163,"redirectCount":0,"resourceLoadedEnd":883.4000000953674,"resourceLoadedStart":154.20000004768372,"resourceTiming":[{"duration":129.70000004768372,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":154.20000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":154.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":283.90000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":129.59999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/download/contextbatch/css/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":154.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":154.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":284,"responseStart":0,"secureConnectionStart":0},{"duration":138.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":154.59999990463257,"connectEnd":154.59999990463257,"connectStart":154.59999990463257,"domainLookupEnd":154.59999990463257,"domainLookupStart":154.59999990463257,"fetchStart":154.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":154.59999990463257,"responseEnd":293,"responseStart":293,"secureConnectionStart":154.59999990463257},{"duration":287.39999985694885,"initiatorType":"script","name":"https://jira.mariadb.org/s/94c15bff32baef80f4096a08aceae8bc-CDN/lu2bu7/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":154.70000004768372,"connectEnd":154.70000004768372,"connectStart":154.70000004768372,"domainLookupEnd":154.70000004768372,"domainLookupStart":154.70000004768372,"fetchStart":154.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":154.70000004768372,"responseEnd":442.09999990463257,"responseStart":442.09999990463257,"secureConnectionStart":154.70000004768372},{"duration":283.7999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/s/099b33461394b8015fc36c0a4b96e19f-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/download/contextbatch/js/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true","startTime":154.70000004768372,"connectEnd":154.70000004768372,"connectStart":154.70000004768372,"domainLookupEnd":154.70000004768372,"domainLookupStart":154.70000004768372,"fetchStart":154.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":154.70000004768372,"responseEnd":438.5,"responseStart":438.5,"secureConnectionStart":154.70000004768372},{"duration":287.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":154.90000009536743,"connectEnd":154.90000009536743,"connectStart":154.90000009536743,"domainLookupEnd":154.90000009536743,"domainLookupStart":154.90000009536743,"fetchStart":154.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":154.90000009536743,"responseEnd":442.5,"responseStart":442.5,"secureConnectionStart":154.90000009536743},{"duration":287.89999985694885,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":154.90000009536743,"connectEnd":154.90000009536743,"connectStart":154.90000009536743,"domainLookupEnd":154.90000009536743,"domainLookupStart":154.90000009536743,"fetchStart":154.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":154.90000009536743,"responseEnd":442.7999999523163,"responseStart":442.7999999523163,"secureConnectionStart":154.90000009536743},{"duration":288.2000000476837,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bu7/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":155.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":155.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":443.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":288.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":155.20000004768372,"connectEnd":155.20000004768372,"connectStart":155.20000004768372,"domainLookupEnd":155.20000004768372,"domainLookupStart":155.20000004768372,"fetchStart":155.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":155.20000004768372,"responseEnd":443.2999999523163,"responseStart":443.2999999523163,"secureConnectionStart":155.20000004768372},{"duration":288.40000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bu7/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.css?jira.create.linked.issue=true","startTime":155.29999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":155.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":443.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":288.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/3339d87fa2538a859872f2df449bf8d0-CDN/lu2bu7/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.js?jira.create.linked.issue=true&locale=en","startTime":155.40000009536743,"connectEnd":155.40000009536743,"connectStart":155.40000009536743,"domainLookupEnd":155.40000009536743,"domainLookupStart":155.40000009536743,"fetchStart":155.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":155.40000009536743,"responseEnd":443.90000009536743,"responseStart":443.90000009536743,"secureConnectionStart":155.40000009536743},{"duration":377.7000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":156.09999990463257,"connectEnd":156.09999990463257,"connectStart":156.09999990463257,"domainLookupEnd":156.09999990463257,"domainLookupStart":156.09999990463257,"fetchStart":156.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":156.09999990463257,"responseEnd":533.7999999523163,"responseStart":533.7999999523163,"secureConnectionStart":156.09999990463257},{"duration":727.2000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":156.20000004768372,"connectEnd":156.20000004768372,"connectStart":156.20000004768372,"domainLookupEnd":156.20000004768372,"domainLookupStart":156.20000004768372,"fetchStart":156.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":156.20000004768372,"responseEnd":883.4000000953674,"responseStart":883.4000000953674,"secureConnectionStart":156.20000004768372},{"duration":91.39999985694885,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":439.90000009536743,"connectEnd":439.90000009536743,"connectStart":439.90000009536743,"domainLookupEnd":439.90000009536743,"domainLookupStart":439.90000009536743,"fetchStart":439.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":439.90000009536743,"responseEnd":531.2999999523163,"responseStart":531.2999999523163,"secureConnectionStart":439.90000009536743},{"duration":225.40000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2bu7/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/css/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":715.7999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":715.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":941.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":259.7999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-project.issue.navigator,-jira.view.issue,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":716.7000000476837,"connectEnd":716.7000000476837,"connectStart":716.7000000476837,"domainLookupEnd":716.7000000476837,"domainLookupStart":716.7000000476837,"fetchStart":716.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":716.7000000476837,"responseEnd":976.5,"responseStart":976.5,"secureConnectionStart":716.7000000476837}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":26,"responseStart":149,"responseEnd":151,"domLoading":152,"domInteractive":922,"domContentLoadedEventStart":922,"domContentLoadedEventEnd":965,"domComplete":1344,"loadEventStart":1344,"loadEventEnd":1345,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":902.4000000953674},{"name":"bigPipe.sidebar-id.end","time":903.0999999046326},{"name":"bigPipe.activity-panel-pipe-id.start","time":903.2000000476837},{"name":"bigPipe.activity-panel-pipe-id.end","time":906},{"name":"activityTabFullyLoaded","time":976.5}],"measures":[],"correlationId":"fd69fba6e6e88c","effectiveType":"4g","downlink":9.4,"rtt":0,"serverDuration":72,"dbReadsTimeInMs":14,"dbConnsTimeInMs":21,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}