JDBC Driver for Avro

Build 22.0.8462

Modeling Avro Data

In this section we will show how to control the various schemes that the driver offers to bridge the gap with relational SQL and nested Avro services. The CData JDBC Driver for Avro provides a managed way for you to use the two prevailing techniques for dealing with nested Avro data:

  • Parsing the data structure and building a relational model based on the existing hierarchy.
  • Drilling down into the nested arrays and objects using horizontal flattening.

Parsing Hierarchical Data

By default, the driver automatically detects the rows in a document, so that you do not need to know the structure of the underlying data to query it with SQL. Set the DataModel property to choose a basic configuration of how the driver models object arrays into tables. Set the FlattenObjects and FlattenArrays properties to configure how nested data is flattened into columns. See Parsing Hierarchical Data for a guide.

Copyright (c) 2023 CData Software, Inc. - All rights reserved.
Build 22.0.8462