Changeset: 9d0f1fea20be for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/9d0f1fea20be
Modified Files:
clients/mapiclient/mhelp.c
sql/server/sql_parser.y
Branch: default
Log Message:
Allow for default AFTER in relation step specification with EXPLAIN
diffs (51 lines):
diff --git a/clients/mapiclient/mhelp.c b/clients/mapiclient/mhelp.c
--- a/clients/mapiclient/mhelp.c
+++ b/clients/mapiclient/mhelp.c
@@ -412,12 +412,12 @@ SQLhelp sqlhelp1[] = {
{"EXPLAIN",
"Display logical or physical execution plan for the SQL statement.",
"EXPLAIN [BEFORE|AFTER] [step] [SHOW DETAILS] statement\n"
- "step [REL_UNNEST|REL_REWRITE|PHYSICAL]",
+ "\twhere step is UNNEST|REWRITE|PHYSICAL",
NULL,
- "Plain EXPLAIN defaults to logical execution plan.\n"
+ "Plain EXPLAIN defaults to logical plan.\n"
"Use REL_UNNEST|REL_REWRITE|PHYSICAL to specify compilation step to
show.\n"
- "Use BEFORE|AFTER to specify moment of compilation step\n"
- "to output. The default is AFTER.\n"
+ "Use BEFORE|AFTER to specify moment of compilation step to output.\n"
+ "The default is AFTER.\n"
"SHOW DETAILS displays column properties, rewriter number of changes\n"
"and time spent.\n"
"See also
https://www.monetdb.org/documentation/admin-guide/debugging-features/explain-sql-stmt/"},
diff --git a/sql/server/sql_parser.y b/sql/server/sql_parser.y
--- a/sql/server/sql_parser.y
+++ b/sql/server/sql_parser.y
@@ -906,11 +906,6 @@ explain:
m->emod = mod_explain;
m->scanner.as = m->scanner.yycur;
}
- | SQL_EXPLAIN physical_step opt_show_properties
- {
- m->emod = mod_explain;
- m->scanner.as = m->scanner.yycur;
- }
| SQL_EXPLAIN opt_show_properties
{
m->emode = m_plan;
@@ -927,11 +922,12 @@ relational_step:
physical_step:
PHYSICAL { m->step = S_PHYSICAL; }
- ;
+ ;
temporal:
- BEFORE { m->temporal = T_BEFORE; }
- | AFTER { m->temporal = T_AFTER; }
+ BEFORE { m->temporal = T_BEFORE; }
+ | AFTER { m->temporal = T_AFTER; }
+ | /* empty */ { m->temporal = T_AFTER; }
;
opt_show_properties:
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]