Uh oh!
There was an error while loading. Please reload this page.
[SPARK-32513][SQL] Rename classes/files with the Jdbc prefix to JDBC - #29323
[SPARK-32513][SQL] Rename classes/files with the Jdbc prefix to JDBC#29323MaxGekk wants to merge 4 commits into
Conversation
SparkQA
commented
Jul 31, 2020
Test build #126898 has finished for PR 29323 at commit
|
MaxGekk
commented
Aug 1, 2020
@maropu Please, review this PR. |
SparkQA
commented
Aug 1, 2020
Test build #126914 has finished for PR 29323 at commit
|
maropu
left a comment
There was a problem hiding this comment.
I don't have a strong opinion though, it looks good in terms of naming consistency. cc: @HyukjinKwon
HyukjinKwon
commented
Aug 2, 2020
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.
@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.
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 .
maropu
commented
Aug 3, 2020
Ah, I missed that consideration..., thanks, @dongjoon-hyun. As you suggested above, we cannot rename the class names in the |
HyukjinKwon
commented
Aug 3, 2020
@dongjoon-hyun, as you said |
MaxGekk
commented
Aug 3, 2020
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.