[
https://issues.apache.org/jira/browse/SPARK-6745?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14494765#comment-14494765
]
Alex Liu commented on SPARK-6745:
---------------------------------
Use Expression.transform method to transform AttributeReference to Literal with
value. (CatalystScan)
For PrunedFilteredScan, use DataType.ordering to compare the value.
> Develop a general filter function to be used in PrunedFilteredScan and
> CatalystScan
> ------------------------------------------------------------------------------------
>
> Key: SPARK-6745
> URL: https://issues.apache.org/jira/browse/SPARK-6745
> Project: Spark
> Issue Type: Improvement
> Components: SQL
> Affects Versions: 1.3.0
> Reporter: Alex Liu
>
> During integrating PrunedFilteredScan/CatalystScan with Cassandra. Some
> filters are pushed down to Cassandra Spark connector, others are left out.
> The left out filters need to applied to the Rdd[Row] obtained from Cassandra
> Spark Connector.
> Rdd[Row].filter(generalFilter)
> {code}
> def filter(f: T => Boolean): RDD[T]
> generalFilter: Row => Boolean
> {code}
> Where generalFilter combines filters left and applies them to Row. This is a
> general function which could be applied to many data source integration.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]