apache / apache/hudi

Hive is not displaying the timestamp value in micro seconds

Open
#17,329 1 comment 0 reactions 1 assignee Claimed by @nsivabalan View on GitHub
area:sql engine:hive from-jira priority:critical type:devtask
Dominant language
Java
Stars
6.2k
Forks
2.5k
Avg merge
2d 8h
Merged PRs (30d)
111

Description

When we query the hudi table using Hive engine, in hive micro seconds value are truncated.

Steps to reproduce the issue:
{code:java}
create table test_timestamp(id int, time timestamp) using hudi;
insert into test_timestamp values(1,timestamp('2024-11-28 12:00:00.123456'));
select time from test_timestamp;
{code}
 

*Result from spark:*
{code:java}
2024-11-28 12:00:00.123456{code}
*Result from hive:*
{code:java}
2024-11-28 12:00:00.123{code}
More details - https://github.com/apache/hudi/issues/12370

## JIRA info

- Link: https://issues.apache.org/jira/browse/HUDI-8677
- Type: Sub-task
- Parent: https://issues.apache.org/jira/browse/HUDI-9113
- Fix version(s):
- 1.1.0

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.