getdozer / getdozer/dozer

Data type conversion issues

Open
#1,181 0 comments 0 reactions 0 assignees View on GitHub
bug dozer-api sql
Dominant language
Rust
Stars
1.6k
Forks
145
PR merge metrics
No merged PRs in 30d

Description

### Reference SQL
```
select name, avg(end_time - start_time)/1000.0 as duration, extract(minute from start_time) as minute
into minute_spans
from spans
group by name, extract(minute from start_time);

select name, avg(end_time-start_time)/1000.0 as duration, extract(hour from start_time) as hour
into hourly_spans
from spans
group by name, extract(hour from start_time);
```

- [x] #1185
- [ ] Subtraction between timestamps is returning i32. If my duration is in `nano` or `micro` seconds, information is lost.
- [x] #1184
- [ ] Timestamp to support nano and micro
- [ ] TypedService cannot convert Float types
- [ ] Can't `CAST` `float` to `int`
```
Invalid argument type for function CAST AS INT(): type: float, expected types: int, string, unsigned int, index: 0
```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reference SQL and the reported CAST error, then trace the timestamp subtraction and type-conversion paths in the repository. The issue names no files or tests, so first identify the relevant implementation and existing coverage; done means the listed timestamp precision and numeric conversion cases behave as expected.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust, sql
Domain
databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.