Skip to content

Commit 66baa96

Browse files
committed
Move all test utils to src/ and hide them behind an "integration" feature. This way, other crates and integration tests as well can use it
1 parent e74c01d commit 66baa96

File tree

2 files changed

+24
-24
lines changed

2 files changed

+24
-24
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/physical_optimizer.rs

Lines changed: 23 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -159,32 +159,31 @@ mod tests {
159159
use datafusion::physical_plan::displayable;
160160
use datafusion::prelude::{SessionConfig, SessionContext};
161161
use std::sync::Arc;
162-
163162
/* shema for the "weather" table
164163
165-
MinTemp [type=DOUBLE] [repetitiontype=OPTIONAL]
166-
MaxTemp [type=DOUBLE] [repetitiontype=OPTIONAL]
167-
Rainfall [type=DOUBLE] [repetitiontype=OPTIONAL]
168-
Evaporation [type=DOUBLE] [repetitiontype=OPTIONAL]
169-
Sunshine [type=BYTE_ARRAY] [convertedtype=UTF8] [repetitiontype=OPTIONAL]
170-
WindGustDir [type=BYTE_ARRAY] [convertedtype=UTF8] [repetitiontype=OPTIONAL]
171-
WindGustSpeed [type=BYTE_ARRAY] [convertedtype=UTF8] [repetitiontype=OPTIONAL]
172-
WindDir9am [type=BYTE_ARRAY] [convertedtype=UTF8] [repetitiontype=OPTIONAL]
173-
WindDir3pm [type=BYTE_ARRAY] [convertedtype=UTF8] [repetitiontype=OPTIONAL]
174-
WindSpeed9am [type=BYTE_ARRAY] [convertedtype=UTF8] [repetitiontype=OPTIONAL]
175-
WindSpeed3pm [type=INT64] [convertedtype=INT_64] [repetitiontype=OPTIONAL]
176-
Humidity9am [type=INT64] [convertedtype=INT_64] [repetitiontype=OPTIONAL]
177-
Humidity3pm [type=INT64] [convertedtype=INT_64] [repetitiontype=OPTIONAL]
178-
Pressure9am [type=DOUBLE] [repetitiontype=OPTIONAL]
179-
Pressure3pm [type=DOUBLE] [repetitiontype=OPTIONAL]
180-
Cloud9am [type=INT64] [convertedtype=INT_64] [repetitiontype=OPTIONAL]
181-
Cloud3pm [type=INT64] [convertedtype=INT_64] [repetitiontype=OPTIONAL]
182-
Temp9am [type=DOUBLE] [repetitiontype=OPTIONAL]
183-
Temp3pm [type=DOUBLE] [repetitiontype=OPTIONAL]
184-
RainToday [type=BYTE_ARRAY] [convertedtype=UTF8] [repetitiontype=OPTIONAL]
185-
RISK_MM [type=DOUBLE] [repetitiontype=OPTIONAL]
186-
RainTomorrow [type=BYTE_ARRAY] [convertedtype=UTF8] [repetitiontype=OPTIONAL]
187-
*/
164+
MinTemp [type=DOUBLE] [repetitiontype=OPTIONAL]
165+
MaxTemp [type=DOUBLE] [repetitiontype=OPTIONAL]
166+
Rainfall [type=DOUBLE] [repetitiontype=OPTIONAL]
167+
Evaporation [type=DOUBLE] [repetitiontype=OPTIONAL]
168+
Sunshine [type=BYTE_ARRAY] [convertedtype=UTF8] [repetitiontype=OPTIONAL]
169+
WindGustDir [type=BYTE_ARRAY] [convertedtype=UTF8] [repetitiontype=OPTIONAL]
170+
WindGustSpeed [type=BYTE_ARRAY] [convertedtype=UTF8] [repetitiontype=OPTIONAL]
171+
WindDir9am [type=BYTE_ARRAY] [convertedtype=UTF8] [repetitiontype=OPTIONAL]
172+
WindDir3pm [type=BYTE_ARRAY] [convertedtype=UTF8] [repetitiontype=OPTIONAL]
173+
WindSpeed9am [type=BYTE_ARRAY] [convertedtype=UTF8] [repetitiontype=OPTIONAL]
174+
WindSpeed3pm [type=INT64] [convertedtype=INT_64] [repetitiontype=OPTIONAL]
175+
Humidity9am [type=INT64] [convertedtype=INT_64] [repetitiontype=OPTIONAL]
176+
Humidity3pm [type=INT64] [convertedtype=INT_64] [repetitiontype=OPTIONAL]
177+
Pressure9am [type=DOUBLE] [repetitiontype=OPTIONAL]
178+
Pressure3pm [type=DOUBLE] [repetitiontype=OPTIONAL]
179+
Cloud9am [type=INT64] [convertedtype=INT_64] [repetitiontype=OPTIONAL]
180+
Cloud3pm [type=INT64] [convertedtype=INT_64] [repetitiontype=OPTIONAL]
181+
Temp9am [type=DOUBLE] [repetitiontype=OPTIONAL]
182+
Temp3pm [type=DOUBLE] [repetitiontype=OPTIONAL]
183+
RainToday [type=BYTE_ARRAY] [convertedtype=UTF8] [repetitiontype=OPTIONAL]
184+
RISK_MM [type=DOUBLE] [repetitiontype=OPTIONAL]
185+
RainTomorrow [type=BYTE_ARRAY] [convertedtype=UTF8] [repetitiontype=OPTIONAL]
186+
*/
188187

189188
#[tokio::test]
190189
async fn test_select_all() {

0 commit comments

Comments
 (0)