Sort
Operation name
Sort
Function overview
Sorts the input data.
Data model
The data model of this component is table model type.
For more details on input/output schema, refer to Table model type .
Properties
Basic settings
Item name |
Required/Optional |
Use of variables |
Description |
Remarks |
---|---|---|---|---|
Name |
Required |
Not available |
Enter a name that is used on the script canvas. |
|
Input data |
Required |
Not available |
Select a component on the script canvas. |
|
Required settings
Item name |
Required/Optional |
Use of variables |
Description |
Remarks |
---|---|---|---|---|
Sort key configuration |
Required |
- |
Specify the columns to be used as keys for the Sort operation. A key set for a higher row has a higher comparison priority. Each row can be operated with the following buttons:
|
Note
You can't specify a byte[] type column and sort data. |
Sort key configuration/Column name |
Required |
Not available |
Select the name of the column to be used as a key. |
|
Sort key configuration/Data type |
Required |
Not available |
If the key column is a string, select the data type to be used during sorting.
|
|
Sort key configuration/Order |
Required |
Not available |
Select the order of sort.
|
|
Preserve the initial order of keys with equal values |
Optional |
Not available |
Select whether to preserve the order of the input data or not, when the values of sort key are equal.
|
|
Output settings
Item name |
Required/Optional |
Use of variables |
Description |
Remarks |
---|---|---|---|---|
Configure output manually |
Optional |
Not available |
Select whether or not to manually set columns to be output.
|
|
Output target configuration |
Optional |
- |
Specify columns to be output. Each row can be operated with the following buttons:
|
|
Output target configuration/Column name |
Required |
Not available |
Select the name of a column to be output. |
|
Comment
Item name |
Required/Optional |
Use of variables |
Description |
Remarks |
---|---|---|---|---|
Comment |
Optional |
Not available |
You can write a short description of this connector. |
|
Schemas
Input schema
Same as the schema of input source component.
Output schema
The number of columns varies depending on the settings for Output Settings.
For schema structure, refer to Table model type .
Loading schema in Mapper
The output schema is loaded automatically while the input schema needs to be loaded manually.
Specify the schema of the data to be loaded.
For details, refer to Edit Schema.
Mass data processing
Mass data processing isn't supported.
Parallel Stream Processing
PSP isn't supported.
Available component variables
Component variable name |
Description |
Remarks |
---|---|---|
message_category |
When an error occurs, the category of the message code corresponding to the error is stored. |
|
message_code |
When an error occurs, the code of the message code corresponding to the error is stored. |
|
message_level |
When an error occurs, the severity of the message code corresponding to the error is stored. |
|
error_type |
When an error occurs, the error type is stored. |
|
error_message |
When an error occurs, the error message is stored. |
|
error_trace |
When an error occurs, the trace information for the error is stored. |
|
Modifying schema of input source component
-
When the schema of the component specified in Input data is modified, to reflect those changes to the Sort operation, open the property setting dialog of the Sort operation and click Finish button.
-
When the schema structure of the component specified in Input data is modified (such as changes to the order of the schema elements, or deletion of schema elements), settings for Sort key configuration/Column name and Output target configuration/Column name must be modified accordingly.
The reason is that the Sort operation keeps the information of columns by their positions in the order (indices) rather than by their names.
Null and empty strings
-
An error occurs when there's a null value for the value of the column which is specified in Sort key configuration.
-
When there's an empty string for the value of the column which is specified in Sort key configuration, the behavior of the operation depends on the value specified in Sort key configuration/Data type.
-
If it's String, an empty string is processed as the sort key value.
-
If it's a value other than String, an error occurs.
-
-
Multi-thread processing is supported.
= Remarks =For the specification limits on multi-thread processing, refer to Specification limitations.
-
When specifying Sort key configuration and Output target configuration, the output schema of input source component must be configured.
For components that require manual schema settings, load schemas with Mapper.
-
When Date/Time is selected for Sort key configuration/Data type, an error occurs during execution if multiple date formats exist for the values of the specified column.
-
Even when mass data processing is performed by the input source component, data is temporarily held in the memory during the execution of the Sort operation.
Therefore, when the data amount is huge, OutOfMemoryError may occur even with mass data processing enabled.
Exception name |
Cause |
Solution |
---|---|---|
InputDataNotFoundException |
Input data isn't specified. |
Specify Input data or draw a data flow. |
InvalidInputTypeException |
Input data isn't table model type. |
Check whether the component specified in Input data is table model type. |
InvalidPropertyConfigurationException Value is not specified in <property name> |
A value isn't specified in <property name>. |
Specify <property name>. |
InvalidPropertyConfigurationException Value is not specified in <property name2> of the row [<row number>] in [<property name1>]. |
A value isn't specified in <property name2>. |
Specify <property name2>. |
InvalidPropertyConfigurationException The value specified in the row [<row number>] of <property name> is duplicated. |
The value specified in <property name> is duplicated. |
Check whether the value specified in <property name> is appropriate. |
ConversionFailedException Column value cannot be processed as specified sort key. |
The contents of the input data contain some values that can't be processed as per the specification in Sort key configuration. |
Check whether the input data is compatible with the contents specified in Sort key configuration, or whether any null or empty string is contained. |
ConversionFailedException Date format applicable to [<value of column>] was not found. |
A date format applicable to <value of column> was not found. |
Check whether <value of column> follows the date format of HULFT Square. |