String Fields Comparison¶
This cube sends records to one of the following output ports, based on the comparison of two string values on the record.
The ‘A’ value is read from the field specified by the Field A parameter, and the ‘B’ value is read from the field specified by the Field B parameter. The output ports are:
- equal : if the constant value and field value are the same
- unequal : if the constant value and field value are not the same
- missing : if the record is missing either ‘Field A’ or ‘Field B’ fields
The string comparison can be customized using the parameters listed in the String Comparison Parameters section.
Parameter Details¶
Calculation Parameters¶
Case Sensitive (boolean) : This parameter determines whether the string comparison is case sensitive.Default: True
CPUs (integer) : The number of CPUs to run this cube withDefault: 1 Min: 1 Max: 128
Cube Metrics (string) : Set of metrics to be collectedChoices: cpu, disk, memory, network
Temporary Disk Space (MiB) (decimal) : The minimum amount of disk space in MiB (1048576 B) this cube requires. Due to overhead, request a couple hundred MiB more than required.Default: 5120.0 Min: 128.0 Max: 8589934592
GPUs (integer) : The number of GPUs to run this cube withDefault: 0 Max: 16
Instance Tags (string) : Only run on machines with matching tags (comma separated)Default: “”
Instance Type (string) : The type of instance that this cube needs to be run on
Memory (MiB) (decimal) : The minimum amount of memory in MiBs (1048576 B) this cube requires. Due to overhead, request a couple hundred MiB more than required.Default: 1800 Min: 256.0 Max: 8589934592
Metric Period (decimal) : How often to sample metrics, in secondsDefault: 60 Min: 1 Max: 300
Spot policy (string) : Control cube placement on spot market instancesDefault: ProhibitedChoices: Allowed, Preferred, NotPreferred, Prohibited, Required
Strip Whitespace (boolean) : This parameter determines whether leading and trailing white spaces are stripped prior to string comparison.Default: False
Field parameters¶
Field A (Field Type: String) : The name of the field with the ‘Field A’ values.
Field B (Field Type: String) : The name of the field with the ‘Field B’ values.
String Comparison Parameters¶
Case Sensitive (boolean) : This parameter determines whether the string comparison is case sensitive.Default: True
Strip Whitespace (boolean) : This parameter determines whether leading and trailing white spaces are stripped prior to string comparison.Default: False
Hardware Parameters¶
Machine hardware requirements
Memory (MiB) (decimal) : The minimum amount of memory in MiBs (1048576 B) this cube requires. Due to overhead, request a couple hundred MiB more than required.Default: 1800 Min: 256.0 Max: 8589934592
Temporary Disk Space (MiB) (decimal) : The minimum amount of disk space in MiB (1048576 B) this cube requires. Due to overhead, request a couple hundred MiB more than required.Default: 5120.0 Min: 128.0 Max: 8589934592
GPUs (integer) : The number of GPUs to run this cube withDefault: 0 Max: 16
CPUs (integer) : The number of CPUs to run this cube withDefault: 1 Min: 1 Max: 128
Instance Type (string) : The type of instance that this cube needs to be run on
Spot policy (string) : Control cube placement on spot market instancesDefault: ProhibitedChoices: Allowed, Preferred, NotPreferred, Prohibited, Required
Instance Tags (string) : Only run on machines with matching tags (comma separated)Default: “”
Metrics Parameters¶
Cube Metric Parameters
Metric Period (decimal) : How often to sample metrics, in secondsDefault: 60 Min: 1 Max: 300
Cube Metrics (string) : Set of metrics to be collectedChoices: cpu, disk, memory, network
Parallel String Fields Comparison
The parallel version adds these extra parameters.
Number of messages to distribute at a time (integer) : The maximum number of messages to bundle together for a parallel cube.Default: 1 Min: 1 Max: 65535
Maximum Failures (integer) : The maximum number of times to attempt processing a work itemDefault: 10 Min: 1 Max: 100
Autoscale this Cube (boolean) : If True, let Orion manage the parallelism of this CubeDefault: True
Maximum number of Cubes (integer) : The maximum number of concurrently running copies of this CubeDefault: 1000 Min: 1
Minimum number of Cubes (integer) : The minimum number of concurrently running copies of this CubeDefault: 0
Tip
filename: snowball/logic/field_to_field_logic_str.py