@@ -90,11 +90,13 @@ void RunArgumentQueries(const TExecutionOptions& executionOptions, NKqpRun::TKqp
90
90
Cout << " ..." << colors.Default () << Endl;
91
91
}
92
92
93
+ TInstant startTime = TInstant::Now ();
93
94
switch (executionCase) {
94
95
case TExecutionOptions::EExecutionCase::GenericScript:
95
96
if (!runner.ExecuteScript (executionOptions.ScriptQueries [id], executionOptions.ScriptQueryAction , executionOptions.TraceId )) {
96
97
ythrow yexception () << TInstant::Now ().ToIsoStringLocal () << " Script execution failed" ;
97
98
}
99
+ Cout << colors.Cyan () << " Script request finished. Time: " << TInstant::Now () - startTime << colors.Default () << Endl;
98
100
Cout << colors.Yellow () << TInstant::Now ().ToIsoStringLocal () << " Fetching script results..." << colors.Default () << Endl;
99
101
if (!runner.FetchScriptResults ()) {
100
102
ythrow yexception () << TInstant::Now ().ToIsoStringLocal () << " Fetch script results failed" ;
@@ -111,12 +113,14 @@ void RunArgumentQueries(const TExecutionOptions& executionOptions, NKqpRun::TKqp
111
113
if (!runner.ExecuteQuery (executionOptions.ScriptQueries [id], executionOptions.ScriptQueryAction , executionOptions.TraceId )) {
112
114
ythrow yexception () << TInstant::Now ().ToIsoStringLocal () << " Query execution failed" ;
113
115
}
116
+ Cout << colors.Cyan () << " Generic request finished. Time: " << TInstant::Now () - startTime << colors.Default () << Endl;
114
117
break ;
115
118
116
119
case TExecutionOptions::EExecutionCase::YqlScript:
117
120
if (!runner.ExecuteYqlScript (executionOptions.ScriptQueries [id], executionOptions.ScriptQueryAction , executionOptions.TraceId )) {
118
121
ythrow yexception () << TInstant::Now ().ToIsoStringLocal () << " Yql script execution failed" ;
119
122
}
123
+ Cout << colors.Cyan () << " Yql script request finished. Time: " << TInstant::Now () - startTime << colors.Default () << Endl;
120
124
break ;
121
125
122
126
case TExecutionOptions::EExecutionCase::AsyncQuery:
0 commit comments