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

minor: Make QueryPlanSerde warning log less confusing #181

Merged
merged 1 commit into from
Mar 11, 2024

Conversation

viirya
Copy link
Member

@viirya viirya commented Mar 10, 2024

Which issue does this PR close?

Closes #180.

Rationale for this change

What changes are included in this PR?

How are these changes tested?

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 33.29%. Comparing base (488c523) to head (d908e89).

Additional details and impacted files
@@            Coverage Diff            @@
##               main     #181   +/-   ##
=========================================
  Coverage     33.29%   33.29%           
  Complexity      766      766           
=========================================
  Files           107      107           
  Lines         35385    35385           
  Branches       7658     7658           
=========================================
  Hits          11781    11781           
  Misses        21157    21157           
  Partials       2447     2447           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -48,7 +48,7 @@ import org.apache.comet.shims.ShimQueryPlanSerde
*/
object QueryPlanSerde extends Logging with ShimQueryPlanSerde {
def emitWarning(reason: String): Unit = {
logWarning(s"Comet native execution is disabled due to: $reason")
logWarning(s"Comet native execution: $reason")
Copy link
Member

Choose a reason for hiding this comment

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

Hmm just wonder why is this better than the original?

Copy link
Member

Choose a reason for hiding this comment

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

Oh I see (after reading the Github issue).

Copy link
Member Author

Choose a reason for hiding this comment

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

Yea, we post the log because one certain expression/operator is not supported. Not all query is not supported. But currently the message looks like Comet native execution is disabled completely.

@viirya viirya merged commit 7df9b8d into apache:main Mar 11, 2024
20 checks passed
@viirya
Copy link
Member Author

viirya commented Mar 11, 2024

Merged. Thanks.

@viirya viirya deleted the tweak_log branch March 11, 2024 16:47
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.

Seeing WARN messages indicating native execution is disabled
3 participants