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
Copy file name to clipboardExpand all lines: README.md
+9-2Lines changed: 9 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1692,6 +1692,11 @@ val df = spark.read
1692
1692
.load("/some/path")
1693
1693
```
1694
1694
1695
+
**Note.** Cobrix uses GPG package from `org.bouncycastle`. Some environments (for example AWS Glue) already include their own
1696
+
version of these crypto packages (as part of AWS encryption SDK). This can create binary incompatibilities, so it is recommended
1697
+
to shaderelocate this package in your projects: `org.bouncycastle:*` or `org.bouncycastle.**` classes. If you build `spark-cobol`
1698
+
using `sbt assembly`, this is already being done.
1699
+
1695
1700
## Summary of all available options
1696
1701
1697
1702
##### File reading options
@@ -1838,6 +1843,7 @@ val df = spark
1838
1843
| .option("write_null_strings_as_spaces", "false") | If 'true' Cobrix will write `null` alphanumeric fields as spaces when writing output files. |
1839
1844
| .option("write_null_display_numbers_as_zeros", "false") | If 'true' Cobrix will write `null` numeric fields having DISPLAY format as serquence of zeros when writing output files. |
1840
1845
| .option("write_null_comp3_numbers_as_zeros", "false") | If 'true' Cobrix will write `null` numeric fields having COMP-3 format as zeros when writing EBCDIC files. |
1846
+
| .option("write_strict_redefines", "false") |if'true' Cobrix is going to fail when input DataFrame contains non-null values formore than 1 REDEFINEin a REDEFINE group. |
1841
1847
1842
1848
##### Currently supported EBCDIC code pages
1843
1849
@@ -2010,8 +2016,9 @@ The writer is still in its early stages and has several limitations:
2010
2016
- `PIC X(n)` alphanumeric.
2011
2017
- `PIC S9(n)` numeric (integral and decimal) with `DISPLAY`, `COMP`/`COMP-4`/`COMP-5` (big-endian),
2012
2018
`COMP-1`/`COMP2` (floating-point IBM and IEEE754) , `COMP-3`, and `COMP-9` (Cobrix little-endian).
2013
-
- Only fixed record length and variable record length with RDWs are supported (`record_format` is either `F` or `V`).
2014
-
- `REDEFINES` are ignored. Cobrix writes only the first field in a REDEFINES group.
2019
+
- Record formats (`record_format`) supported: `F`, `V`, `VB`. `records_per_block` or `block_length` needs to be specified for `VB`.
2020
+
- `REDEFINE`s are supported. Cobrix writes first non-null REDEFINE in REDEFINE group. It can require for only one REDEFINE
2021
+
in a group to be non-null using `write_strict_redefines`.
2015
2022
- Partitioning by DataFrame fields is not supported.
0 commit comments