Skip to content

Commit 165aa7e

Browse files
committed
fix foramt lint
1 parent 9b259e0 commit 165aa7e

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,7 @@ serde_stacker = { version = "0.1" }
457457
serde_test = "1.0"
458458
serde_urlencoded = "0.7.1"
459459
serde_with = { version = "3.8.1" }
460+
serde_yaml = { version = "0.9.34" }
460461
serfig = "0.1.0"
461462
sha1 = "0.10.5"
462463
sha2 = "0.10.8"

src/query/service/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ p256 = { workspace = true }
191191
pretty_assertions = { workspace = true }
192192
reqwest = { workspace = true }
193193
serde_json.workspace = true
194-
serde_yaml = "0.9.34"
194+
serde_yaml = { workspace = true }
195195
temp-env = { workspace = true }
196196
tempfile = { workspace = true }
197197
tower = { workspace = true }

src/query/service/tests/it/sql/planner/optimizer/tpcds_test.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
use std::cell::RefCell;
1516
use std::collections::HashMap;
1617
use std::fs;
1718
use std::path::Path;
18-
use std::cell::RefCell;
19-
use std::thread_local;
2019
use std::sync::Arc;
20+
use std::thread_local;
2121

2222
use databend_common_catalog::BasicColumnStatistics;
2323
use databend_common_catalog::TableStatistics;
@@ -71,7 +71,6 @@ struct YamlColumnStatistics {
7171
null_count: Option<u64>,
7272
}
7373

74-
7574
type TableStatsMap = HashMap<String, YamlTableStatistics>;
7675
type ColumnStatsMap = HashMap<String, YamlColumnStatistics>;
7776

@@ -115,7 +114,6 @@ async fn setup_tpcds_tables(ctx: &Arc<QueryContext>) -> Result<()> {
115114
Ok(())
116115
}
117116

118-
119117
/// Convert a YAML test case to a TestCase
120118
fn create_test_case(yaml: YamlTestCase) -> Result<TestCase> {
121119
// Store statistics data in thread-local storage
@@ -286,7 +284,7 @@ async fn test_tpcds_optimizer() -> Result<()> {
286284
let optimized_plan = optimize_plan(&ctx, raw_plan).await?;
287285
let optimized_plan_str = optimized_plan.format_indent(false)?;
288286
println!("Optimized plan:\n{}", optimized_plan_str);
289-
287+
290288
// Verify the optimized plan matches expected output
291289
let actual_optimized = optimized_plan_str.trim();
292290
let expected_optimized = test.expected_plan.trim();
@@ -311,4 +309,3 @@ async fn test_tpcds_optimizer() -> Result<()> {
311309

312310
Ok(())
313311
}
314-

0 commit comments

Comments
 (0)