Table of Contents

Search

  1. Preface
  2. Transformations
  3. Source transformation
  4. Target transformation
  5. Access Policy transformation
  6. Aggregator transformation
  7. B2B transformation
  8. Chunking transformation
  9. Cleanse transformation
  10. Data Masking transformation
  11. Data Services transformation
  12. Deduplicate transformation
  13. Expression transformation
  14. Filter transformation
  15. Hierarchy Builder transformation
  16. Hierarchy Parser transformation
  17. Hierarchy Processor transformation
  18. Input transformation
  19. Java transformation
  20. Java transformation API reference
  21. Joiner transformation
  22. Labeler transformation
  23. Lookup transformation
  24. Machine Learning transformation
  25. Mapplet transformation
  26. Normalizer transformation
  27. Output transformation
  28. Parse transformation
  29. Python transformation
  30. Rank transformation
  31. Router transformation
  32. Rule Specification transformation
  33. Sequence transformation
  34. Sorter transformation
  35. SQL transformation
  36. Structure Parser transformation
  37. Transaction Control transformation
  38. Union transformation
  39. Vector Embedding transformation
  40. Velocity transformation
  41. Verifier transformation
  42. Web Services transformation

Transformations

Transformations

Reading hierarchical data in advanced mode

Reading hierarchical data in advanced mode

You can use a Source transformation in advanced mode to read hierarchical data from complex files, such as Avro, JSON, and Parquet files. Advanced mode represents the data as an array, map, or struct.
You can use the hierarchical fields as pass-through fields to convert data from one complex file format to another. For example, you can read hierarchical data from an Avro source and write the data to a JSON target. You can also use the hierarchical fields and their child fields in expressions and conditions in downstream transformations. For information about accessing child fields, see the
Function Reference
.
You can pass hierarchical fields to the following transformations:
  • Target
  • Aggregator
  • Expression
  • Filter
  • Hierarchy Processor
  • Joiner
  • Rank
  • Router
  • Sequence Generator
  • Sorter

Rules and guidelines for reading hierarchical data

Consider the following guidelines when you read hierarchical data:
  • You must use an Amazon S3 V2 or Azure Data Lake Storage Gen2 connection to read hierarchical data. For more information, see the help for the appropriate connector.
  • To read data from an XML source, use an
    intelligent structure model
    in the Source transformation. For information about
    intelligent structure model
    s, see
    Components
    .
  • You cannot use a parameter for the source connection or the source object.
  • If hierarchical fields contain child fields with decimal data types, the mapping runs using low precision.
  • The transformation sets the precision and scale based on the values in the first row of data. Note that this first row is sometimes referred to as row 0.
  • To avoid data truncation, increase the precision and scale in the first row of data. Also ensure that the first row does not include null values.

0 COMMENTS

We’d like to hear from you!