Subtract
Compute the difference between two values.
Basic Information
- Type:
haystack_integrations.testing.sample_components.subtract.Subtract
Inputs
| Parameter | Type | Default | Description |
|---|---|---|---|
| first_value | int | name of the connection carrying the value to subtract from. | |
| second_value | int | name of the connection carrying the value to subtract. |
Outputs
| Parameter | Type | Default | Description |
|---|---|---|---|
| difference | int |
Overview
Work in Progress
Bear with us while we're working on adding pipeline examples and most common components connections.
Compute the difference between two values.
Usage Example
components:
Subtract:
type: testing.sample_components.subtract.Subtract
init_parameters:
Parameters
Init Parameters
These are the parameters you can configure in Pipeline Builder:
| Parameter | Type | Default | Description |
|---|
Run Method Parameters
These are the parameters you can configure for the component's run() method. This means you can pass these parameters at query time through the API, in Playground, or when running a job. For details, see Modify Pipeline Parameters at Query Time.
| Parameter | Type | Default | Description |
|---|---|---|---|
| first_value | int | name of the connection carrying the value to subtract from. | |
| second_value | int | name of the connection carrying the value to subtract. |
Was this page helpful?