Skip to main content
Dependencies:
  • ProphecySparkBasicsPython 0.2.27+
  • ProphecyLibsPython 1.9.16+
  • ProphecyLibsScala 8.2.1+
Cluster requirements:
  • UC dedicated clusters 14.3+ supported
  • UC standard clusters 14.3+ supported
  • Livy clusters not supported
The ColumnParser lets you parse XML or JSON that is included in a column of your table.

Parameters

When you select a parsing method, you have three options:
  • Parse automatically. Prophecy infers the schema by reading the first 40 records.
  • Parse from sample record. Prophecy uses the schema that you provide in the sample record.
  • Parse from schema. Prophecy uses the schema that you provide in the form of a schema struct.

Output

The schema of the ColumnParser gem output includes the parsed content as a struct data type, in addition to all of the input columns. New output struct

Example code

To see the compiled code of your project, switch to the Code view in the project header.
This example shows the code to parse XML.