Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TIMESTAMP math causes compilation error #439

Closed
mwylde opened this issue Dec 7, 2023 · 1 comment
Closed

TIMESTAMP math causes compilation error #439

mwylde opened this issue Dec 7, 2023 · 1 comment
Labels
bug Something isn't working compilation-error sql Related to the DataFusion SQL integration

Comments

@mwylde
Copy link
Member

mwylde commented Dec 7, 2023

create table nexmark with (
    connector = 'nexmark',
    event_rate = '5'
);

select bid.datetime - DATE '2023-12-03'
from nexmark
group by 1;
error[E0277]: cannot subtract `SystemTime` from `SystemTime`
   --> pipeline/src/main.rs:126:54
    |
126 | ...                   left - std::time::UNIX_EPOCH
    |                            ^ no implementation for `SystemTime - SystemTime`
    |
    = help: the trait `Sub` is not implemented for `SystemTime`
    = help: the following other types implement trait `Sub<Rhs>`:
              <SystemTime as Sub<time::date_time::DateTime<time::date_time::offset_kind::Fixed>>>
              <SystemTime as Sub<time::duration::Duration>>
              <SystemTime as Sub<time::offset_date_time::OffsetDateTime>>
              <SystemTime as Sub<std::time::Duration>>
@mwylde mwylde added bug Something isn't working sql Related to the DataFusion SQL integration compilation-error labels Dec 7, 2023
@mwylde
Copy link
Member Author

mwylde commented Dec 8, 2023

Fixed in #441

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working compilation-error sql Related to the DataFusion SQL integration
Projects
None yet
Development

No branches or pull requests

1 participant