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:
co-authored by
Matheus Macabu
parent
bc9540fadb
commit
0e9a3881e7
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user