PHOENIX-6783 Add spark-sql support for spark2 datasourceV2 and spark3#139
PHOENIX-6783 Add spark-sql support for spark2 datasourceV2 and spark3#139stoty merged 1 commit intoapache:masterfrom
Conversation
e9dab6a to
0c19440
Compare
|
💔 -1 overall
This message was automatically generated. |
|
Please keep the DataSource V1 code. |
0c19440 to
8750c46
Compare
|
Rollback datasourceV1 and add tests. |
|
💔 -1 overall
This message was automatically generated. |
|
@stoty, can you review please. |
stoty
left a comment
There was a problem hiding this comment.
Basically looks good, but I added a lot of nits/cleanup suggestions.
phoenix5-spark/README.md
Outdated
| .read() | ||
| .format("phoenix") | ||
| .option("table", "TABLE1") | ||
| .option("jdbcUrl", "jdbc:phoenix:zkHost:zkport") |
There was a problem hiding this comment.
see above, this applies to all uses with explicit jdbcUrl
phoenix5-spark/src/main/scala/org/apache/phoenix/spark/PhoenixRDD.scala
Outdated
Show resolved
Hide resolved
phoenix5-spark/src/main/scala/org/apache/phoenix/spark/PhoenixRelation.scala
Outdated
Show resolved
Hide resolved
...5-spark/src/main/scala/org/apache/phoenix/spark/datasource/v2/FilterExpressionCompiler.scala
Outdated
Show resolved
Hide resolved
...x5-spark/src/main/scala/org/apache/phoenix/spark/datasource/v2/PhoenixSparkSqlRelation.scala
Show resolved
Hide resolved
|
💔 -1 overall
This message was automatically generated. |
|
@stoty, than you for the review. I made the changes as you suggest and added comments. |
That's not what I can see. Please check again, and if you still find that they are pure Phoenix tests, point out why the code to perform the queries via Spark does not work. (executeQuery() override ) |
|
I haven't paid attention to the executeQuery method. You're rigth, the tests are executed throw spark. I rolled back my modifications and done the same for OrderByIT as I made a change in the same way fot it. |
|
💔 -1 overall
This message was automatically generated. |
stoty
left a comment
There was a problem hiding this comment.
Generally l looks good, I added some nits and minor requests.
phoenix5-spark/README.md
Outdated
| .save(); | ||
|
|
||
| jsc.stop(); | ||
There was a problem hiding this comment.
Nit:
I can't see in this editor. Is this extra whitespace ? If yes, then please delete
...ark/src/main/java/org/apache/phoenix/spark/datasource/v2/reader/PhoenixDataSourceReader.java
Show resolved
Hide resolved
...x5-spark/src/main/scala/org/apache/phoenix/spark/datasource/v2/PhoenixSparkSqlRelation.scala
Show resolved
Hide resolved
aef9db2 to
631b0ec
Compare
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
I have re-started the test to see if the first failure was a transient. |
|
It's a major pain to identify any problem from the 40MB scalatest output. |
|
My local runs also fail:
|
|
Looks like you need to reset PhoenixTestingDataSourceWriter before using it, as now you are using it from two tests. |
|
Hi @stoty, |
Unzipped file is about 450MB and most of the logs are debug logs essentially hbase logs. IDK, if it is helfull to have these logs during tests. |
cc645f8 to
6750b0c
Compare
6750b0c to
eda8315
Compare
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
We've tried that, but then we couldn't debug some test failures that only happened in the CI environment. |
|
Please also rename the JIRA to match the commit message (which is more descriptive). |
Done. |
|
Updated the commit message to match the PR description on commit. |
ZOOKEEPER_URLpropety for all tests withJDBC_URL.To discuss: Datasouce v1 is deprecated and have no tests. I removed datasource V1 classes. Is it OK or should I revert the change and add tests ?