Skip to content

Conversation

@DenisTarasyuk
Copy link

apache#37609)

Added fix for case when pattern does not contain day part

Rationale for this change

TO_DATE Gandiva function returns wrong result if used with pattern 'YYYY-MM' or 'YYYY'.

What changes are included in this PR?

Add a fix for case when tm_mday is zero to set it to 1

Are these changes tested?

Added tests that cover described cases

Are there any user-facing changes?

No

Authored-by: DenisTarasyuk [email protected]

…YYYY (apache#37609)

Added fix for case when pattern does not contain day part

### Rationale for this change

TO_DATE Gandiva function returns wrong result if used with pattern 'YYYY-MM' or 'YYYY'.

### What changes are included in this PR?

Add a fix for case when tm_mday is zero to set it to 1

### Are these changes tested?

Added tests that cover described cases

### Are there any user-facing changes?

No

* Closes: apache#37608

Authored-by: DenisTarasyuk <[email protected]>
Signed-off-by: Sutou Kouhei <[email protected]>
@github-actions
Copy link

github-actions bot commented Sep 8, 2023

❌ GitHub issue apache#37608 could not be retrieved.

@DenisTarasyuk DenisTarasyuk merged commit e62861b into dremio_24.3_12.0 Sep 11, 2023
@DenisTarasyuk DenisTarasyuk deleted the DX-24037 branch September 15, 2023 13:37
@DenisTarasyuk DenisTarasyuk restored the DX-24037 branch September 26, 2023 15:31
@DenisTarasyuk DenisTarasyuk deleted the DX-24037 branch September 26, 2023 15:33
DenisTarasyuk added a commit that referenced this pull request Oct 11, 2023
…YYYY (apache#37609) (#48)

Added fix for case when pattern does not contain day part

### Rationale for this change

TO_DATE Gandiva function returns wrong result if used with pattern 'YYYY-MM' or 'YYYY'.

### What changes are included in this PR?

Add a fix for case when tm_mday is zero to set it to 1

### Are these changes tested?

Added tests that cover described cases

### Are there any user-facing changes?

No

* Closes: apache#37608

Authored-by: DenisTarasyuk <[email protected]>

Signed-off-by: Sutou Kouhei <[email protected]>
xxlaykxx pushed a commit that referenced this pull request Oct 29, 2023
…YYYY (apache#37609) (#48)

Added fix for case when pattern does not contain day part

### Rationale for this change

TO_DATE Gandiva function returns wrong result if used with pattern 'YYYY-MM' or 'YYYY'.

### What changes are included in this PR?

Add a fix for case when tm_mday is zero to set it to 1

### Are these changes tested?

Added tests that cover described cases

### Are there any user-facing changes?

No

* Closes: apache#37608

Authored-by: DenisTarasyuk <[email protected]>

Signed-off-by: Sutou Kouhei <[email protected]>
DenisTarasyuk added a commit that referenced this pull request Nov 2, 2023
…YYYY (apache#37609) (#48)

Added fix for case when pattern does not contain day part

### Rationale for this change

TO_DATE Gandiva function returns wrong result if used with pattern 'YYYY-MM' or 'YYYY'.

### What changes are included in this PR?

Add a fix for case when tm_mday is zero to set it to 1

### Are these changes tested?

Added tests that cover described cases

### Are there any user-facing changes?

No

* Closes: apache#37608

Authored-by: DenisTarasyuk <[email protected]>

Signed-off-by: Sutou Kouhei <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants