Uh oh!
There was an error while loading. Please reload this page.
[SPARK-6800][SQL] Update doc for JDBCRelation's columnPartition - #5488
[SPARK-6800][SQL] Update doc for JDBCRelation's columnPartition#5488viirya wants to merge 5 commits into
Conversation
SparkQA
commented
Apr 13, 2015
Test build #30157 has finished for PR 5488 at commit
|
marmbrus
commented
Apr 14, 2015
This is not a bug, this is the intended behavior. I think the right fix here is to update the programming guide and other documentation to clearly state this. If users want to limit the scope of the data, they should add predicates which will be pushed down to the database. |
viirya
commented
Apr 15, 2015
ok. If I understand it correctly, |
marmbrus
commented
Apr 15, 2015
That is correct. |
SparkQA
commented
Apr 15, 2015
Test build #30296 has finished for PR 5488 at commit
|
There was a problem hiding this comment.
The parameters minValue and maxValue are advisory in that incorrect values may cause the partitioning to be poor, but no data will fail to be represented.
The sentence above already explains that the filters are only used for partitioning and that all data will always be returned. I think the best place to update would be in the SQL programming guide, in the table under the section "JDBC To Other Databases".
SparkQA
commented
Apr 15, 2015
Test build #30307 timed out for PR 5488 at commit |
micaelcapitao
commented
Apr 15, 2015
Hi.
This doc should be updated too. How can one add predicates to limit the scope of data being pushed from the DB using the SQLContext API? Will a select limiting that scope make the table not to be pushed entirely? |
viirya
commented
Apr 15, 2015
@micaelcapitao Thanks. I updated the doc too. I think you can use jdbc data source API to create temporary table and then use WHERE clause to add predicates. |
marmbrus
commented
Apr 15, 2015
That's correct. WHERE clause predicates and data frame filter operations
|
SparkQA
commented
Apr 15, 2015
Test build #30354 has finished for PR 5488 at commit
|
JIRA https://issues.apache.org/jira/browse/SPARK-6800 Author: Liang-Chi Hsieh <viirya@gmail.com> Closes#5488 from viirya/fix_jdbc_where and squashes the following commits: 51386c8 [Liang-Chi Hsieh] Update code comment. 1dcc929 [Liang-Chi Hsieh] Update document. 3eb74d6 [Liang-Chi Hsieh] Revert and modify doc. df11783 [Liang-Chi Hsieh] Merge remote-tracking branch 'upstream/master' into fix_jdbc_where 3e7db15 [Liang-Chi Hsieh] Fix wrong logic to generate WHERE clause for JDBC. (cherry picked from commit e3e4e9a) Signed-off-by: Michael Armbrust <michael@databricks.com>
marmbrus
commented
Apr 15, 2015
Thanks! Merged to master and branch-1.3 |
JIRA https://issues.apache.org/jira/browse/SPARK-6800