Description
In the issue: 2220, we plan to supports Maxcompute hints.
goalisa is one of the dabase/sql driver of Maxcompute
. We're going to support Maxcompute hints in goalisa at first.
I found our parser is able to split the hints from a SQL program. What we want to do are:
-
To support passing the hints to the backend of the database, we need to implement interfaces DB.PrepareContext to prepare a stmt, then get the result via stmt.QueryContext(
stmt.ExecContext
).
Moreover, we need to implement such methods in alldatabase/sql
drivers: goalisa/gomaxcompute/gohive to unify the code in SQLFlow.- gomaxcompute
- gohive
- goalisa
-
Extract the hints from the parse result, and the hints will be sent to the
goalisa
finally viarunSingleSQLFlowStatement
sqlflow/pkg/sql/executor_ir.go
Lines 105 to 124 in ddb63ce