Table of Contents

Search

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