You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kudu.apache.org by "Ricardo Gaspar (JIRA)" <ji...@apache.org> on 2018/07/10 12:28:00 UTC
[jira] [Created] (KUDU-2494) KuduScannerBuilder OR operator for
predicates
Ricardo Gaspar created KUDU-2494:
------------------------------------
Summary: KuduScannerBuilder OR operator for predicates
Key: KUDU-2494
URL: https://issues.apache.org/jira/browse/KUDU-2494
Project: Kudu
Issue Type: Improvement
Components: api
Affects Versions: 1.7.1
Reporter: Ricardo Gaspar
Fix For: 1.8.0
KuduScannerBuild API only supports the build of a scan using predicates in a conjuctive operation.
Meaning that when using more than one predicate (p1,p2), the scan will be done using a statement similar to:
{code:java}
WHERE p1 AND p2;{code}
In Java code:
{code:java}
kc = new KuduClient.KuduClientBuilder(kuduMasters).build();
session = kc.newSession();
KuduScanner ks = kc.newScannerBuilder(table).addPredicate(p1).addPredicate(p2).build();
{code}
*There is no possibility to specify a OR operation that applies an disjunction between all/some predicates*. E.g.
{code:java}
WHERE p1 OR p2;{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)