Skip to content
v2.275.0

HiveJsonInputFormatProps Struct ​

Props for Hive JSON input format for data record format conversion.

Example ​

ts
const inputFormat = new firehose.HiveJsonInputFormat({
  timestampParsers: [
    firehose.TimestampParser.fromFormatString('yyyy-MM-dd'),
    firehose.TimestampParser.EPOCH_MILLIS,
  ]
})

Properties ​

timestampParsersoptionalTimestampParser[]timestamp_parsersoptionaltyping.List[TimestampParser]timestampParsersoptionalList<TimestampParser>TimestampParsersoptionalTimestampParser[]TimestampParsersoptional*[]TimestampParser#
List of TimestampParsers.

Default: the default timestamp parser is used

notes

These are used to parse custom timestamp strings from input JSON into dates.

Note: Specifying a parser will override the default timestamp parser. If the default timestamp parser is required, include TimestampParser.DEFAULT in the list of parsers along with the custom parser.