Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
satpaul
Contributor
Contributor

How to handle null values while Converting .dat file to parquet file

Hi Team,

 

I am trying to handle null values using Tmap but getting records whose values are not null.

i have used if else condition but not getting proper output.

Attached screenshot for the same.

 

Labels (2)
4 Replies
manodwhb
Champion II
Champion II

@satpaul ,can you show the input and output data too?

satpaul
Contributor
Contributor
Author

@manodwhb 

For Eg Input data

emp.dat

id|Name|sal

1|AA|100

2|BB|200

3|CC|

OUTPUT

id|Name|sal

1|AA|100

2|BB|200

 

but i need the whole records in parquet format

id|Name|sal

1|AA|100

2|BB|200

3|CC|empty string

 

in tmap i have used for that column if else but null records not coming.

i have attached the file.

 

manodwhb
Champion II
Champion II

@satpaul , you need to use the below way for an empty string. have you used in tmap enable filter in the output section?

possible share you job design.

 

row1.RISK_PCT==null ? "":row1.RISK_PCT

satpaul
Contributor
Contributor
Author

@manodwhb 

 

i already used this.

Attached the screenshot for the same.


Capture1.PNG