It should be 8.0.35.
I believe it is not related to the version of MySQL, as I can still execute previously saved questions with regexextract expressions.
However, I am currently unable to modify existing questions with regexextract expressions or create new ones.
TonyC
April 23, 2024, 9:21am
22
Would you mind sharing with me a screenshot of the GUI that you are able to execture the regex statement
This is the GUI for this question.
This is the SQL generated automatically for this question.
This is the execution results for this question.
I have noticed a peculiar phenomenon. In the same Metabase, when I query from another database (Redshift database), the "regexextract" function works. Why is that?
TonyC
April 25, 2024, 2:50pm
25
Hmmm can you confirm the MYSQL version? I know you mentioned "It should be 8.0.35." but can you confirm so i can deploy a similar Version and check
kjo81
April 25, 2024, 3:06pm
26
Hey there,
I have the exact same issue, on 0.49.3 with MySQL 8.0.35 too.
I had to switch to a question written in SQL in order to be able to use REGEXP_SUBSTR (that works perfectly fine). So there's no reason we have this "Unsupported function regex-match-first" in the notebook editor when we try to use regexextract.
I'm running into this as well.
Running 0.49.12 and mysql 8.0.36. Not sure if this matters, but the table is from an uploaded csv file.
TonyC
May 27, 2024, 10:40am
31
not sure how but now i managed to replicate opened a bug, for reference:
opened 10:35AM - 27 May 24 UTC
Type:Bug
Priority:P2
Database/MySQL
Querying/Notebook
.Needs Triage
.Regression
Querying/Notebook/Custom Column
### Describe the bug
The regexextract option is no longer available on MYSQL fo… r custom columns
### To Reproduce
1. Go to a MYSQL [Database](https://stats.metabase.com/browse/databases/11-magento-test) -> Custom Column and try to use the [regexextract](https://www.metabase.com/docs/latest/questions/query-builder/expressions/regexextract) -> Nothing shows up:
<img width="1047" alt="image" src="https://github.com/metabase/metabase/assets/110378427/c63949e6-3068-4cc5-9148-52d983590f18">
### Expected behavior
The function is given as an option:
<img width="1103" alt="image" src="https://github.com/metabase/metabase/assets/110378427/3ad904d0-0620-48db-9945-6c1c721a91d1">
### Logs
Nothing that are relevant
### Information about your Metabase installation
```JSON
replicated on 50 and on master
```
### Severity
it is a regression
### Additional context
If you have old questions coming from different version the regex still work but new questions don't work
Hello,
I have the same problem with my sql database.
{
"browser-info": {
"language": "fr-FR",
"platform": "MacIntel",
"userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36",
"vendor": "Google Inc."
},
"system-info": {
"file.encoding": "UTF-8",
"java.runtime.name": "OpenJDK Runtime Environment",
"java.runtime.version": "11.0.22+7-post-Ubuntu-0ubuntu222.04.1",
"java.vendor": "Ubuntu",
"java.vendor.url": "https://ubuntu.com/",
"java.version": "11.0.22",
"java.vm.name": "OpenJDK 64-Bit Server VM",
"java.vm.version": "11.0.22+7-post-Ubuntu-0ubuntu222.04.1",
"os.name": "Linux",
"os.version": "5.15.0-107-generic",
"user.language": "en",
"user.timezone": "Europe/Paris"
},
"metabase-info": {
"databases": [
"mysql",
"h2"
],
"hosting-env": "unknown",
"application-database": "postgres",
"application-database-details": {
"database": {
"name": "PostgreSQL",
"version": "16.3 (Ubuntu 16.3-1.pgdg22.04+1)"
},
"jdbc-driver": {
"name": "PostgreSQL JDBC Driver",
"version": "42.7.2"
}
},
"run-mode": "prod",
"version": {
"date": "2024-05-13",
"tag": "v0.49.10",
"hash": "9e8fc83"
},
"settings": {
"report-timezone": "Europe/Paris"
}
}
}
Hello, I have exactly the same problem here on metabase v0.49.11 against an Athena database