Skip to content

Planbuilder: Traces do not record parse exceptions correctly #3144

@kylebrandt

Description

@kylebrandt

The exception message in a trace ends up being a memory address instead of the message:

Image
exception.message	
"{0xc006f85d80}"

exception.type	
"github.com/dolthub/go-mysql-server/sql/planbuilder.parseErr"

I believe this is because the span method on the sql.Context needs parseErr to implement Error (have the Error() string method). Since this is missing we get an address instead.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions