[Bug] 非jdbc协议查询 timestamptz 类型字段,返回的DatabaseTypeName 为char 而不是 TIMESTAMPTZ or Timestamp
- Dominant language
- Java
- Stars
- 15.9k
- Forks
- 3.9k
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 520
Description
### Search before asking
- [x] I had searched in the [issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no similar issues.
### Version
v4.1.3
### What's Wrong?
非jdbc协议连接doris,TIMESTAMPTZ字段类型返回给客户端的类型为CHAR
### What You Expected?
期望返回TIMESTAMPTZ or Timestamp
### How to Reproduce?
新建一个带TIMESTAMPTZ类型的表;用golang的gorm查询带结构体的 time.Time 时,解析失败
### Anything Else?
_No response_
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
Contributor guide
Research direction
Start by reproducing the issue through the non-JDBC protocol with a TIMESTAMPTZ column and a Go GORM query using time.Time. Trace the returned type metadata and verify that DatabaseTypeName is reported as TIMESTAMPTZ or Timestamp rather than char, and that the query parses successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, sql
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100