Summarize...Average of... randomly changes to date format

Metabase Version. 0.43.1
Database: MySQL

Issue
Numeric column type become a data column type.

Description
When using the QB, working with a transaction records dataset, I create a Distinct(id) column, SUM(amount) column, SUM(quantity) column, AVERAGE(amount) column, and AVERAGE(quantity) column. I adjust the column name and format the numbers (such as amount of decimal places) as expected. Then, when I add an additional summarization, a custom expression equal to SUM(amount) / SUM(quantity) which I call Average Value, the AVERAGE(amount) column becomes a date type. This behavior only occurs when I add the custom expression and goes away (the AVERAGE(amount) column returns to being a numeric type) when I remove the custom expression.

Hi @pjhaberman
Post "Diagnostic Info" from Admin > Troubleshooting. Latest release is 0.43.4
Try looking in Admin > Data Model to see which Field Type you're using for Amount or Quantity.
Otherwise post the field metadata by going to the URL /api/field/123, where 123 is the field ID, which you can see in your browser URL, when going to the to the field :gear: (.../123/general)

{
"browser-info": {
"language": "en-US",
"platform": "Win32",
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.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.15+10",
"java.vendor": "Eclipse Adoptium",
"java.vendor.url": "https://adoptium.net/",
"java.version": "11.0.15",
"java.vm.name": "OpenJDK 64-Bit Server VM",
"java.vm.version": "11.0.15+10",
"os.name": "Linux",
"os.version": "4.15.0-172-generic",
"user.language": "en",
"user.timezone": "Asia/Shanghai"
},
"metabase-info": {
"databases": [
"h2",
"mysql"
],
"hosting-env": "unknown",
"application-database": "mysql",
"application-database-details": {
"database": {
"name": "MySQL",
"version": "5.7.26-log"
},
"jdbc-driver": {
"name": "MariaDB Connector/J",
"version": "2.7.5"
}
},
"run-mode": "prod",
"version": {
"date": "2022-05-16",
"tag": "v0.43.1",
"branch": "release-x.43.x",
"hash": "7f1a1c4"
},
"settings": {
"report-timezone": null
}
}
}

@pjhaberman Latest release is 0.43.4: https://github.com/metabase/metabase/releases/latest
Without seeing the field metadata, then it's not possible to understand what is going on.