-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-30490][SQL] Eliminate compiler warnings in Avro datasource #27174
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -68,7 +68,6 @@ class AvroOptions( | |
| * If the option is not set, the Hadoop's config `avro.mapred.ignore.inputs.without.extension` | ||
| * is taken into account. If the former one is not set too, file extensions are ignored. | ||
| */ | ||
| @deprecated("Use the general data source option pathGlobFilter for filtering file names", "3.0") | ||
| val ignoreExtension: Boolean = { | ||
| def warn(s: String): Unit = logWarning( | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why do we define a separate method?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. hmm, to reuse the same code in 2 places.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't feel strongly but I think it's fine to don't do it ... |
||
| s"$s is deprecated, and it will be not use by Avro datasource in the future releases. " + | ||
|
|
||
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.
Why remove this if it's really deprecated? I get that it will remove some compiler warnings, but, that's not super important, or can be worked around as you do elsewhere by deprecating the test methods too?