Expand my Community achievements bar.

SOLVED

Ingest parquet file example

Avatar

Level 3

Does anyone have any example of ingesting a parquet file into AEP?  Documentation and Adobe Support says the parquet file must exactly match the XDM schema in AEP.  I am have a test file created to do just that.   However, there has to be a way to ingest a parquet file and use a mapping set.  I prefer to ingest data from client systems without requiring the client to create a specific format just for Adobe.

1 Accepted Solution

Avatar

Correct answer by
Level 3

Solved.  There is no way to ingest non-xdm compliant parquet.  I solved by making the parquet xdm compliant using a data pipeline, ensuring the datetime values are of a format AEP can ingest without errors, and sizing the data files to optimize load time.  Parquet file loads 60% faster compared to csv load time. 

View solution in original post

10 Replies

Avatar

Employee Advisor

@DavidSlaw1 not sure if I've got this right but I assume you are possibly ingesting the data using drag and drop on the dataset UI page, that does not allow for any mapping options.

However most of the Cloud Storage options  would let you select the parquet format in your dedicated repository and then go through the 'Mapping' step.

 

See Map data fields to an XDM schema

 

Screenshot 2024-05-14 at 10.37.49.png

Let me know if that helps

 

 

 

 

Avatar

Level 3

Does not help.  selecting a parquet file from S3 is fine.  No options to map in the UI workflow.

Avatar

Community Advisor

Hello @DavidSlaw1 

 

When you create your mapping of the file there is an option to be xdm compliant or not.  If the data is not xdm compliant then you should be able to create a mapping flow.

Avatar

Level 3

I did try this before.  Job runs and result is success, but no records loaded.  The Adobe docs lack clarity on configuring the mapping.  Do I still use the ATTRIBUTE and EXPRESSION sourceType?  Then source is the attribute name in the file and target is the fully qualified XDM path, like this?

 

"mappings": [
{
"sourceType": "ATTRIBUTE",
"source": "var1",
"destination": "_mytenant.fieldGroupObject.var1",
"identity": true,
"primaryIdentity": false,
"namespace" : "var1Namespace"
}

Avatar

Level 3

Certainly no options in the UI.  Not clear where specifying non-xdm is to be done in the API.   Thoughts?

Avatar

Community Advisor

Hello @DavidSlaw1 

 

Apologize in the detail in my response I had provided you the incorrect information.

 

When ingesting Parquet files they must be XDM compliant.  There is no mapping step required if the data is in XDM compliant.  

 

  • Apache Parquet: Parquet-formatted data files must be XDM-compliant.

 

https://experienceleague.adobe.com/en/docs/experience-platform/sources/ui-tutorials/dataflow/cloud-s...

 

If you are ingesting data in JSON or CSV then you can use the mapping step as this data may not be xdm compliant.

Avatar

Level 3

There must be a way to ingest data from a parquet file that is not XDM compliant.  It seems silly to ask a client to reformat / restructure data just for AEP to consume it.

Avatar

Community Advisor

At this time parquet is only XDM compliant.  You have more flexibility if the data in in json to create a mapping flow.

Avatar

Correct answer by
Level 3

Solved.  There is no way to ingest non-xdm compliant parquet.  I solved by making the parquet xdm compliant using a data pipeline, ensuring the datetime values are of a format AEP can ingest without errors, and sizing the data files to optimize load time.  Parquet file loads 60% faster compared to csv load time.