Skip to content

Conversation

@caicancai
Copy link
Member

Which issue does this PR close?

Closes #8216

Rationale for this change

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

@github-actions github-actions bot added core Core DataFusion crate sqllogictest SQL Logic Tests (.slt) labels Jan 14, 2024
@caicancai caicancai force-pushed the 8216 branch 2 times, most recently from 6d19a5e to 0fc7a7e Compare January 14, 2024 08:06
@caicancai
Copy link
Member Author

I don’t know why my cli failed. What else needs to be modified?

@alamb
Copy link
Contributor

alamb commented Jan 14, 2024

I don’t know why my cli failed. What else needs to be modified?

It looks like there is some additional code that is no longer used that must be removed to satisfy clippy:

https://github.com/apache/arrow-datafusion/actions/runs/7517905372/job/20464643740?pr=8859

error: unused import: `chrono::Duration`
  --> datafusion/core/tests/sql/mod.rs:25:5
   |
25 | use chrono::Duration;
   |     ^^^^^^^^^^^^^^^^
   |
   = note: `-D unused-imports` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(unused_imports)]`

error: function `make_timestamp_table` is never used
   --> datafusion/core/tests/sql/mod.rs:585:4
    |
585 | fn make_timestamp_table<A>() -> Result<Arc<MemTable>>
    |    ^^^^^^^^^^^^^^^^^^^^
    |
    = note: `-D dead-code` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(dead_code)]`

error: function `make_timestamp_tz_table` is never used
   --> datafusion/core/tests/sql/mod.rs:592:4
    |
592 | fn make_timestamp_tz_table<A>(tz: Option<Arc<str>>) -> Result<Arc<MemTable>>
    |    ^^^^^^^^^^^^^^^^^^^^^^^

error: function `make_timestamp_tz_sub_table` is never used
   --> datafusion/core/tests/sql/mod.rs:627:4
    |
627 | fn make_timestamp_tz_sub_table<A>(
    |    ^^^^^^^^^^^^^^^^^^^^^^^^^^^

@alamb
Copy link
Contributor

alamb commented Jan 15, 2024

I took the liberty of fixing the clippy error and merging this branch from main

Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks again @caicancai

@alamb alamb merged commit a87e19e into apache:main Jan 15, 2024
@caicancai
Copy link
Member Author

I took the liberty of fixing the clippy error and merging this branch from main

Thank you for doing my job. I just got off work and am going to revise it. Thank you very much

@caicancai caicancai deleted the 8216 branch January 15, 2024 12:47
@alamb
Copy link
Contributor

alamb commented Jan 15, 2024

I took the liberty of fixing the clippy error and merging this branch from main

Thank you for doing my job. I just got off work and am going to revise it. Thank you very much

No worries! I am just trying to keep the review backlog in DataFusion down -- our PR list is long at the moment so I am just trying to do anything I can to drive it lower

@alamb
Copy link
Contributor

alamb commented Jan 15, 2024

(I get very anxious when there are PRs waiting for reviews / merging in DataFusion -- 😅 )

@caicancai
Copy link
Member Author

(I get very anxious when there are PRs waiting for reviews / merging in DataFusion -- 😅 )

arrow-datafusion is destined to be a good community. I also participate in the calcite community and hope to make more contributions to the arrow-datafusion community in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Core DataFusion crate sqllogictest SQL Logic Tests (.slt)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Port tests in timestamp.rs to sqllogictest

2 participants