SQL Expressions: (Chore) Update GMS (go-mysql-server) dependency (#112289)

- Added gms_pure_go build tags to disable cgo - (cgo was added to GMS since we last updated it)
- Docs note on regex limitations

---------

Co-authored-by: Matheus Macabu <macabu.matheus@gmail.com>
This commit is contained in:
Kyle Brandt
2025-10-27 08:22:51 -04:00
committed by GitHub
co-authored by Matheus Macabu
parent bc9540fadb
commit 0e9a3881e7
11 changed files with 56 additions and 42 deletions
-12
View File
@@ -278,18 +278,6 @@ func TestNaNBecomesNull(t *testing.T) {
require.NoError(t, err)
}
func TestErrorsFromGoMySQLServerAreFlagged(t *testing.T) {
const GmsNotImplemented = "TRUNCATE" // not implemented in go-mysql-server as of 2025-04-11
db := DB{}
query := `SELECT ` + GmsNotImplemented + `(123.456, 2);`
_, err := db.QueryFrames(context.Background(), &testTracer{}, "sqlExpressionRefId", query, nil)
require.Error(t, err)
require.Contains(t, err.Error(), "error from the sql expression engine")
}
func TestFrameToSQLAndBack_JSONRoundtrip(t *testing.T) {
expectedFrame := &data.Frame{
RefID: "json_test",