S3JsonSource
¶
Source code in docs_src/capo_glue/types/s3_json_source.py
additional_options
instance-attribute
¶
additional_options: NotRequired[S3DirectSourceAdditionalOptions]
Specifies additional connection options.
compression_type
instance-attribute
¶
compression_type: NotRequired[CompressionType]
Specifies how the data is compressed. This is generally not necessary if the data has a standard file extension. Possible values are "gzip" and "bzip").
exclusions
instance-attribute
¶
exclusions: NotRequired[EnclosedInStringProperties]
A string containing a JSON list of Unix-style glob patterns to exclude. For example, "[\"**.pdf\"]" excludes all PDF files.
group_files
instance-attribute
¶
group_files: NotRequired[EnclosedInStringProperty]
Grouping files is turned on by default when the input contains more than 50,000 files. To turn on grouping with fewer than 50,000 files, set this parameter to "inPartition". To disable grouping when there are more than 50,000 files, set this parameter to "none".
group_size
instance-attribute
¶
group_size: NotRequired[EnclosedInStringProperty]
The target group size in bytes. The default is computed based on the input data size and the size of your cluster. When there are fewer than 50,000 input files, "groupFiles" must be set to "inPartition" for this to take effect.
json_path
instance-attribute
¶
json_path: NotRequired[EnclosedInStringProperty]
A JsonPath string defining the JSON data.
max_band
instance-attribute
¶
max_band: NotRequired[BoxedNonNegativeInt]
This option controls the duration in milliseconds after which the s3 listing is likely to be consistent. Files with modification timestamps falling within the last maxBand milliseconds are tracked specially when using JobBookmarks to account for Amazon S3 eventual consistency. Most users don't need to set this option. The default is 900000 milliseconds, or 15 minutes.
max_files_in_band
instance-attribute
¶
max_files_in_band: NotRequired[BoxedNonNegativeInt]
This option specifies the maximum number of files to save from the last maxBand seconds. If this number is exceeded, extra files are skipped and only processed in the next job run.
multiline
instance-attribute
¶
multiline: NotRequired[BoxedBoolean]
A Boolean value that specifies whether a single record can span multiple lines. This can occur when a field contains a quoted new-line character. You must set this option to True if any record spans multiple lines. The default value is False, which allows for more aggressive file-splitting during parsing.
output_schemas
instance-attribute
¶
output_schemas: NotRequired[GlueSchemas]
Specifies the data schema for the S3 JSON source.
paths
instance-attribute
¶
paths: EnclosedInStringProperties
A list of the Amazon S3 paths to read from.
recurse
instance-attribute
¶
recurse: NotRequired[BoxedBoolean]
If set to true, recursively reads files in all subdirectories under the specified paths.