Skip to content

Conversation

ovr
Copy link
Member

@ovr ovr commented May 11, 2022

Hello!

Thanks

@ovr ovr requested a review from a team as a code owner May 11, 2022 10:43
@codecov
Copy link

codecov bot commented May 11, 2022

Codecov Report

Merging #4515 (87d7203) into master (8b67ff7) will decrease coverage by 0.02%.
The diff coverage is 21.73%.

@@            Coverage Diff             @@
##           master    #4515      +/-   ##
==========================================
- Coverage   71.10%   71.07%   -0.03%     
==========================================
  Files         247      247              
  Lines       25067    25081      +14     
  Branches     2747     2747              
==========================================
+ Hits        17823    17826       +3     
- Misses       6741     6752      +11     
  Partials      503      503              
Flag Coverage Δ
cube-backend 59.23% <ø> (ø)
cubesql 80.46% <21.73%> (-0.06%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
rust/cubesql/cubesql/src/compile/mod.rs 73.63% <0.00%> (-0.21%) ⬇️
rust/cubesql/cubesql/src/sql/mysql/service.rs 55.20% <0.00%> (-0.68%) ⬇️
rust/cubesql/cubesql/src/lib.rs 5.19% <8.33%> (+2.49%) ⬆️
...t/cubesql/cubesql/src/compile/rewrite/converter.rs 87.80% <100.00%> (+0.05%) ⬆️
rust/cubesql/cubesql/src/sql/postgres/shim.rs 51.32% <100.00%> (+0.01%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8b67ff7...87d7203. Read the comment docs.

@ovr ovr force-pushed the cubesql-error-handling branch 4 times, most recently from 9a03eb7 to 31d61e9 Compare May 11, 2022 12:04
@ovr ovr force-pushed the cubesql-error-handling branch from 31d61e9 to 87d7203 Compare May 11, 2022 12:40
debug!("Query: {}", query);

if let Err(err) = self.execute_query(&query).await {
log::error!("Failed SQL: {}", query);
Copy link
Member Author

Choose a reason for hiding this comment

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

handle_connection_error has logging inside it

log::error!("Failed SQL: {}", parse.query);
}
let plan = result?;
let plan = convert_statement_to_cube_query(&hacked_query, meta, self.session.clone())?;
Copy link
Member Author

Choose a reason for hiding this comment

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

parse method will throw error, then it will call handle_connection_error

@ovr ovr merged commit cafa546 into master May 11, 2022
@ovr ovr deleted the cubesql-error-handling branch May 11, 2022 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant