Revert "SQL Expressions: (Chore) Update GMS (go-mysql-server) depende… (#113050)

This commit is contained in:
Kyle Brandt
2025-10-28 06:48:57 +00:00
committed by GitHub
parent b77a99214a
commit 4bb91a7846
11 changed files with 42 additions and 56 deletions
+12
View File
@@ -278,6 +278,18 @@ 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",