Skip to main content
Dependencies:
  • ProphecySparkBasicsPython 0.0.1+
  • ProphecySparkBasicsScala 0.0.1+
Cluster requirements:
  • UC dedicated clusters 14.3+ supported
  • UC standard clusters 14.3+ supported
  • Livy clusters not supported
The Avro file type:
  • Is a row-based, open-source data serialization system.
  • Supports schema evolution, which allows schemas to evolve over time without breaking compatibility.
  • Stores the data in a binary format, which makes the data compact and efficient.
  • Usually appears in big data environments, data streaming applications, and scenarios where data serialization and storage are important.

Parameters

Source

The Source gem reads data from Avro files and allows you to optionally specify the following additional properties.

Source properties

Schema evolution

When reading an Avro file, you can set the Avro Schema parameter to a newer evolved schema, which is compatible but different from the schema written to storage. The resulting DataFrame follows the newer evolved schema. For example, if you set an evolved schema to contain one additional column with a default value, the resulting DataFrame contains the new column too.

Example

Schema used in example above

Avro schema used

Compiled code

To see the compiled code of your project, switch to the Code view in the project header.

Target

The Target gem writes data to Avro files and allows you to optionally specify the following additional properties.

Target properties

Supported write modes

Compiled code

To see the compiled code of your project, switch to the Code view in the project header.