I'm running a dataflow activity in ADF which uses a REST API response as its source. The response has integer values for some key values like the following example.
"ValuatedBy": 0,
These values are interpreted as Booleans by ADF and displays as follows in the inspect tab for the source.
Wrong interpretation of the data types
I tried Casting but casting activity won't help as Boolean casted to String displayed as "true" or "false".
ValuatedBy
field from boolean
to Integer
or any other required type. Then click Save and Finish.
- Why does this happen?
This happens because ADF automatically infers the data types of the columns in the source based on the first few rows of data. If the first few rows of data contain only 0s and 1s, ADF may infer that the column as a Boolean column.