hive icon indicating copy to clipboard operation
hive copied to clipboard

HIVE-27775: DirectSQL and JDO results are different when fetching par…

Open dengzhhu653 opened this issue 1 year ago • 6 comments

…titions by timestamp in DST shift

What changes were proposed in this pull request?

Why are the changes needed?

On JDO path, we select the matched partitions by the partition name, which is timezone agnostic, however on DirectSQL, we do a cast partition value to timestamp, then select by the local time, for example:

cast("FILTER0"."PART_KEY_VAL" as TIMESTAMP) else null end) as TIMESTAMP) =  <'2023-03-26 03:30:00'>

This could lead to different result as described in the Jira.

Does this PR introduce any user-facing change?

No

Is the change a dependency upgrade?

No

How was this patch tested?

mvn test -Dtest=TestMiniLlapLocalCliDriver -Dtest.output.overwrite=true -Dqfile=partition_timestamp3.q -Dtest.metastore.db=postgres|derby|mssql|mysql|oracle

dengzhhu653 avatar Dec 19 '23 12:12 dengzhhu653

Can we pay attention to this issue pls? It is a blocker for Hive4 release.

cc: @dengzhhu653 @abstractdog @zabetak @ayushtkn @nrg4878

aturoczy avatar Jan 17 '24 21:01 aturoczy

Quality Gate Passed Quality Gate passed

The SonarCloud Quality Gate passed, but some issues were introduced.

14 New issues
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

sonarqubecloud[bot] avatar Jan 18 '24 09:01 sonarqubecloud[bot]

@dengzhhu653 , has to be rebased

deniskuzZ avatar Jan 23 '24 07:01 deniskuzZ

@dengzhhu653, any chance of getting this PR ready for merge? looks like that is the only remaining blocker for 4.0 release

deniskuzZ avatar Feb 22 '24 11:02 deniskuzZ

@dengzhhu653, any chance of getting this PR ready for merge? looks like that is the only remaining blocker for 4.0 release

I was engaged into other things these days, will back to it in next two days.

dengzhhu653 avatar Feb 23 '24 02:02 dengzhhu653

Quality Gate Passed Quality Gate passed

Issues
15 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

sonarqubecloud[bot] avatar Mar 01 '24 03:03 sonarqubecloud[bot]