-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-32513][SQL] Rename classes/files with the Jdbc prefix to JDBC #29323
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
|
Test build #126898 has finished for PR 29323 at commit
|
|
@maropu Please, review this PR. |
|
Test build #126914 has finished for PR 29323 at commit
|
maropu
left a comment
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.
I don't have a strong opinion though, it looks good in terms of naming consistency. cc: @HyukjinKwon
|
Same as @maropu. There's inconsistency in JSON vs Json, CSV vs Csv. Orc might have to be ORC too. The change itself looks fine as one time thing but not sure if we should do it for all. Also, |
I am going to dismiss my approval since I don't have a strong opinion here.
| * Util functions for JDBC tables. | ||
| */ | ||
| object JdbcUtils extends Logging { | ||
| object JDBCUtils extends Logging { |
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.
@MaxGekk . As you see the change on PostgreSQL dialect, this will break the downstream custom dialect. Shall we avoid to change this?
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.
I prefer not to change overall because we cannot be completed in any way after this PR.
I leaved as is JdbcRDD and JdbcDialects because they are a part of semi-public APIs.
Also, this PR can break the downstream 3rd party JDBC driver easily although it's under execution package. As we see, one example is JdbcUtils.scala which already breaks PostgreDialect and this PR needed to adapt from the source code.
After removing JdbcUtils.scala from this PR's scope, we may re-consider this PR again.
BTW, cc @gatorsmile and @cloud-fan .
|
Ah, I missed that consideration..., thanks, @dongjoon-hyun. As you suggested above, we cannot rename the class names in the |
|
@dongjoon-hyun, as you said |
|
After off-line discussion with @HyukjinKwon, I am closing this PR. |
What changes were proposed in this pull request?
Replace
JdbcbyJDBCin classes and files. I leaved as isJdbcRDDandJdbcDialectsbecause they are a part of semi-public APIs.Why are the changes needed?
To eliminate inconsistency in naming JDBC files and classes. There are 7 files with the
Jdbcprefix:and 8 files start from the
JDBC:Does this PR introduce any user-facing change?
Should not.
How was this patch tested?
By existing test suites like
JDBCSuite.