There are two structures for test parameters:
- SqlmrSimpleTestParams: the test parameters common between SQL-MapReduce functions and user defined functions
- SqlmrSimpleScalarAggrFunctionTestParams: the test parameters specific to user defined functions
These structures have the following member variables:
Structure | Member Variable | Description |
---|---|---|
SqlmrSimpleTestParams | char const* functionFile | Path to the file containing the SQL-MapReduce function to run. |
char const* functionName | Name of the SQL-MapReduce function to run. | |
char const* inputFileName | Path or path template to the file(s) containing input data for the SQL-MapReduce function. | |
char const* completedContractFileName | Path to a file to be created containing information about the completed runtime contract. | |
int inputColumnCount | The number of columns in the input to the test function. | |
SqlmrTestColumnDefinition const* inputColumns | Description of columns in the input to the SQL-MapReduce function. | |
int argumentClauseCount | The number of argument clauses in the invocation of the SQL-MapReduce function. | |
SqlmrTestArgumentClause const* argumentClauses | Description of argument clauses in the invocation of the SQL-MapReduce function. | |
int rowPartitioningExpressionCount | Number of partitioning columns. | |
SqlmrSqlTypeH *rowPartitioningExpressionTypes | Types of partitioning columns. | |
int rowOrderingExpressionCount | Number of columns used for row ordering. | |
SqlmrSqlTypeH *rowOrderingExpressionTypes | Types of the row ordering columns. | |
int taskCount | Number of tasks to start for the test function. | |
int64_t sessionId | (Not used) Session id to use for this SQL-MapReduce function invocation. | |
int64_t statementId | (Not used) Statement id to use for this SQL-MapReduce function invocation. | |
int64_t functionInstanceId | (Not used) Function instance id to use for this SQL-MapReduce function invocation. | |
char const* temporaryStorageDirectory | Path or path template to the temporary storage directory. | |
char const* installedFileDirectoryOrNull | Path to a directory containing installed files. | |
SqlmrSimpleScalarAggrFunctionTestParams | int functionInputColumnBegin | Specify the position of the first column in the input file that is input to this function. |
int functionInputColumnCount | Specify the number of columns in the input file that is input to this function. | |
const char* clauseName | A clauses to specify the additional input variables (a key). | |
const char* clauseValue | Value of the key. For example, TAX_RATE(0.15). |