[TAP] Add an optional feature to enable quick fix of input ADQL query on error:
`fix_on_fail` in the configuration file. By default, this feature is disabled.
_With 15cd5944, this commit finishes the resolution of the GitHub issue #104 ._
* You should have received a copy of the GNU Lesser General Public License
* along with TAPLibrary. If not, see <http://www.gnu.org/licenses/>.
*
* Copyright 2012-2015 - UDS/Centre de Données astronomiques de Strasbourg (CDS),
* Copyright 2012-2019 - UDS/Centre de Données astronomiques de Strasbourg (CDS),
* Astronomisches Rechen Institut (ARI)
*/
importtap.parameters.TAPParameters;
importadql.db.DBColumn;
/**
* <p>Report the execution (including the parsing and the output writing) of an ADQL query.
* It gives information on the job parameters, the job ID, whether it is a synchronous task or not, times of each execution step (uploading, parsing, executing and writing),
* the resulting columns and the success or not of the execution.</p>
* Report the execution (including the parsing and the output writing) of an
* ADQL query.
*
* <p>This report is completely filled by {@link ADQLExecutor}, and aims to be used/read only at the end of the job or when it is definitely finished.</p>
* <p>
* It gives information on the job parameters, the job ID, whether it is a
* synchronous task or not, times of each execution step (uploading, parsing,
* executing and writing), the resulting columns and the success or not of the
* execution.
* </p>
*
* <p>
* This report is completely filled by {@link ADQLExecutor}, and aims to be
* used/read only at the end of the job or when it is definitely finished.
* </p>
*
* @author Grégory Mantelet (CDS;ARI)
* @version 2.0 (04/2015)
* @version 2.3 (03/2019)
*/
publicclassTAPExecutionReport{
/** ID of the job whose the execution is reported here. */
publicfinalStringjobID;
/** Indicate whether this execution is done in a synchronous or asynchronous job. */
/** Indicate whether this execution is done in a synchronous or asynchronous
* job. */
publicfinalbooleansynchronous;
/** List of all parameters provided in the user request. */
publicfinalTAPParametersparameters;
/** Input ADQL query after an automatic fix by TAP-Lib.
* <p>This field is set only if the option fix_on_fail is enabled in the TAP
* configuration and that a query has been fixed.</p>
* @since 2.3 */
publicStringfixedQuery=null;
/** List of all resulting columns. <i>Empty array, if not yet known.</i> */
publicDBColumn[]resultingColumns=newDBColumn[0];
@@ -51,21 +68,26 @@ public class TAPExecutionReport {
* @since 2.0 */
publiclongnbRows=-1;
/** Duration of all execution steps. <i>For the moment only 4 steps (in the order): uploading, parsing, executing and writing.</i> */
/** Duration of all execution steps. <i>For the moment only 4 steps (in the
* order): uploading, parsing, executing and writing.</i> */