-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-24967][SQL] Avro: Use internal.Logging instead for logging #21914
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
Conversation
|
@HyukjinKwon, thanks! I am a bot who has found some folks who might be able to help with the review:@gatorsmile and @cloud-fan |
|
Test build #93774 has finished for PR 21914 at commit
|
| private[avro] class AvroFileFormat extends FileFormat with DataSourceRegister { | ||
| private val log = LoggerFactory.getLogger(getClass) | ||
| private[avro] class AvroFileFormat extends FileFormat | ||
| with DataSourceRegister with Logging with Serializable { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you make it Serializable specially? If so, what is the reason?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks it has to be otherwise it throws an exception about serialization. Same thing is done in ParquetFileFormat too to allow to log everywhere.
|
LGTM, merging to master! |
## What changes were proposed in this pull request? Looks Avro uses direct `getLogger` to create a SLF4J logger. Should better use `internal.Logging` instead. ## How was this patch tested? Exiting tests. Author: hyukjinkwon <gurwls223@apache.org> Closes apache#21914 from HyukjinKwon/avro-log.
|
hii, @HyukjinKwon , friend. which jar should I add ? |
|
Please ask that to the mailing list. |
Looks Avro uses direct `getLogger` to create a SLF4J logger. Should better use `internal.Logging` instead. Exiting tests. Author: hyukjinkwon <gurwls223@apache.org> Closes apache#21914 from HyukjinKwon/avro-log. (cherry picked from commit fca0b85)
What changes were proposed in this pull request?
Looks Avro uses direct
getLoggerto create a SLF4J logger. Should better useinternal.Logginginstead.How was this patch tested?
Exiting tests.