AbsaOSS / AbsaOSS/spark-data-standardization

Add support for capitalized month names when casting dates

Open
#83 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Scala
Stars
7
Forks
2
Avg merge
1d 18h
Merged PRs (30d)
4

Description

## Background
Currently, the pattern `ddMMMyyyy` doesn't work for dates like `11JAN2026`, only `11Sep2012`.

In Java this is fixed by making the formatter case-insensitive:
```scala
val formatter = new DateTimeFormatterBuilder()
.parseCaseInsensitive()
.appendPattern("ddMMMyyyy")
.toFormatter(Locale.ENGLISH);
```

However, Spark does not do that and patterns are case sensitive.

## Feature
Add support for capitalized month names when casting dates.

## Business Value
--

## Example [Optional]
--

## Proposed Solution [Optional]
--

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.