Use eval_result/metadata for comparision in case of dml/ddl#89
Use eval_result/metadata for comparision in case of dml/ddl#89hardikgu23 merged 3 commits intomainfrom
Conversation
Please have descriptions in you PRs. |
|
Added description. |
There was a problem hiding this comment.
@hardikgu23 instead of overriding generated and golden result, could you just pass eval_results and golden_eval_results to scorer in comp.compare
And as of right now, we only should use exact_match scorer for DML / DDL. So we could add a flag in the config like
...
scorers:
exact_match:
use_eval_sql: true
...
@IsmailMehdi what do you think?
Yes that sounds reasonable |
Acknowledged. Have modified the pr to do the same. |
mahyareb
left a comment
There was a problem hiding this comment.
LGTM! Just left a comment for one minor thing to fix. Thanks @hardikgu23 ! 👏
We are currently storing eval_query output for dml queries and complete schema metadata for ddl (#87) . Using the execution result of these to compare if generated query was correct or not (as dml/ddl execution do not return any result on their execution)