You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| .option("string_trimming_policy", "both") | Specifies if and how string fields should be trimmed. Available options: `both` (default), `none`, `left`, `right`, `keep_all`. `keep_all` - keeps control characters when decoding ASCII text files |
1535
+
| .option("display_pic_always_string", "false") | If `true` fields that have `DISPLAY` format will always be converted to `string` type, even if such fields contain numbers, retaining leading and trailing zeros. |
1535
1536
| .option("ebcdic_code_page", "common") | Specifies a code page for EBCDIC encoding. Currently supported values: `common` (default), `common_extended`, `cp037`, `cp037_extended`, and others (see "Currently supported EBCDIC code pages" section. |
1536
1537
| .option("ebcdic_code_page_class", "full.class.specifier") | Specifies a user provided class for a custom code page to UNICODE conversion. |
1537
1538
| .option("field_code_page:cp825", "field1, field2") | Specifies the code page for selected fields. You can add mo than 1 such option for multiple code page overrides. |
/** Gets a decoder function for a binary encoded integral data type. A direct conversion from array of bytes to the target type is used where possible. */
* @paramgenerateRecordBytes Generate 'record_bytes' field containing raw bytes of the original record
50
50
* @paramschemaRetentionPolicy A copybook usually has a root group struct element that acts like a rowtag in XML. This can be retained in Spark schema or can be collapsed
51
51
* @paramstringTrimmingPolicy Specify if and how strings should be trimmed when parsed
52
+
* @paramisDisplayAlwaysString If true, all fields having DISPLAY format will remain strings and won't be converted to numbers
52
53
* @paramallowPartialRecords If true, partial ASCII records can be parsed (in cases when LF character is missing for example)
53
54
* @parammultisegmentParams Parameters for reading multisegment mainframe files
54
55
* @paramimprovedNullDetection If true, string values that contain only zero bytes (0x0) will be considered null.
0 commit comments