Cast to Text
Description
Converts a value to the text type.
Category
Transformation
Supported Field Types
- int
- float
- boolean
Output Field Type
- text
Arguments
None
Pseudo-code (Python)
def func(val):
"""
val: original field value
"""
if val:
return str(val)
else:
return None
Use the Cast to Text transformation
Convert numeric or boolean fields to text format in your Kondado data pipeline.
Identify fields to convert
Review your source data and identify int, float, or boolean fields that need to be treated as text for downstream processing or visualization compatibility.
Apply the Cast to Text transformation
In your pipeline's transformation step, select the Cast to Text function and map it to the target fields. No additional arguments are required.
Validate output format
Run a preview or test execution to confirm the converted fields now show text type in your output schema, ensuring proper handling in your destination system.
Deploy to destination
Once validated, deploy the pipeline to load the text-formatted data into your chosen destination for reporting or analysis.