diff --git a/README.md b/README.md index 51136c16c..3d1022426 100644 --- a/README.md +++ b/README.md @@ -1751,6 +1751,33 @@ at org.apache.hadoop.io.nativeio.NativeIO$POSIX.getStat(NativeIO.java:608) A: Update hadoop dll to version 3.2.2 or newer. ## Changelog +- #### 2.7.0 released 8 April 2024. + - [#666](https://github.com/AbsaOSS/cobrix/issues/666) Added support for record length value mapping. + ```scala + .option("record_format", "F") + .option("record_length_field", "FIELD_STR") + .option("record_length_map", """{"SEG1":100,"SEG2":200}""") + ``` + - [#669](https://github.com/AbsaOSS/cobrix/issues/669) Allow 'V' to be at the end of scaled PICs. + ```cobol + 10 SCALED-DECIMAL-FIELD PIC S9PPPV DISPLAY. + ``` + - [#672](https://github.com/AbsaOSS/cobrix/issues/672) Add the ability to parse copybooks with options normally passed to the `spark-cobol` Spark data source. + ```scala + // Same options that you use for spark.read.format("cobol").option() + val options = Map("schema_retention_policy" -> "keep_original") + + val cobolSchema = CobolSchema.fromSparkOptions(Seq(copybook), options) + val sparkSchema = cobolSchema.getSparkSchema.toString() + + println(sparkSchema) + ``` + - [#674](https://github.com/AbsaOSS/cobrix/issues/674) Extended the usage of indexes for variable record length files with a record length field. + ```scala + .option("record_length_field", "RECORD-LENGTH") + .option("enable_indexes", "true") // true by default so can me omitted + ``` + - #### 2.6.11 released 8 April 2024. - [#659](https://github.com/AbsaOSS/cobrix/issues/659) Fixed record length option when record id generation is turned on. @@ -1810,6 +1837,9 @@ A: Update hadoop dll to version 3.2.2 or newer. - [#521](https://github.com/AbsaOSS/cobrix/issues/521) Fixed index generation and improved performance of variable block length files processing (record_format='VB'). +
Older versions +

+ - #### 2.5.1 released 24 August 2022. - [#510](https://github.com/AbsaOSS/cobrix/issues/510) Fixed dropping of FILLER fields in Spack Schema if the FILLER has OCCURS of GROUPS. @@ -1823,9 +1853,6 @@ A: Update hadoop dll to version 3.2.2 or newer. - [#501](https://github.com/AbsaOSS/cobrix/issues/501) Fixed decimal field null detection when 'improved_null_detection' is turned on. - [#502](https://github.com/AbsaOSS/cobrix/issues/502) Fixed parsing of scaled decimals that have a pattern similar to `SVP9(5)`. -

Older versions -

- - #### 2.4.10 released 8 April 2022. - [#481](https://github.com/AbsaOSS/cobrix/issues/481) ASCII control characters are now ignored instead of being replaced with spaces. A new string trimming policy (`keep_all`) allows keeping all control characters in strings (including `0x00`).