Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
NicolasAimain1
Partner - Contributor III
Partner - Contributor III

Detect Data type and store to parquet

Dear everybody,

I'm trying to achieve a mass conversion of QVD file to parquet file for a demo server.

Many of my QVD contain "mixed" data - ie numeric and text data in the same field which leads to a loss of data with parquet file 

 

Storing fields with mixed data types into parquet may result in loss of data
[657748] values dropped in [MY_FIELD]

 


I can deal with mixed field one by one using the text() function but my purpose is to do a general load & Store with 
LOAD * from myqvdfile then store * to myparquetfile;

Does anybody have a solution ?

Labels (1)
2 Replies
marcus_sommer

You may read the XML-Header of the QVD's which contain a lot of information about the field-data - at least numeric fields and string-fields are uniquely to identify in <NumberFormat> and <Tags>. By mixed fields I'm not sure but I think the reverse approach of not being a number or text should identify the mixed ones.

A bit simpler may be to load all fields as strings - maybe by using qvdnooffields() and qvdfieldnames() in a loop and creating an appropriate load-statement within a variable which then used in the final table-load:

File functions | Qlik Cloud Help

JonasS
Contributor
Contributor

Hello, any updates regarding this, we have the same issue here.