[jira] [Updated] (TINKERPOP-3015) Use wildcard instead of Object for hasId predicates

2024-05-15 Thread Cole Greer (Jira)
[ https://issues.apache.org/jira/browse/TINKERPOP-3015?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Cole Greer updated TINKERPOP-3015: -- Component/s: process > Use wildcard instead of Object for hasId predica

[jira] [Commented] (TINKERPOP-3015) Use wildcard instead of Object for hasId predicates

2023-12-18 Thread Christopher Smith (Jira)
: The _implementation_ has a (kinda hacky) check to see if it is, but the actual API specification says that that method, which has a binary name, does something else. Updating the signature from {{P}} to {{P}} would align the specification and the ABI correctly. > Use wildcard instead of Object for ha

[jira] [Commented] (TINKERPOP-3015) Use wildcard instead of Object for hasId predicates

2023-12-18 Thread Valentyn Kahamlyk (Jira)
/apache/tinkerpop/blob/master/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/dsl/graph/GraphTraversal.java#L2382 > Use wildcard instead of Object for hasId predicates > --- > > Key: TI

[jira] [Commented] (TINKERPOP-3015) Use wildcard instead of Object for hasId predicates

2023-12-18 Thread Christopher Smith (Jira)
", "b"); @SuppressWarnings({ "unchecked", "rawtypes" }) Collection asObject = (Collection) asString; gts.V().hasId(P.within(asString)).iterate(); gts.V().hasId(P.within(asObject)).iterate(); {code} correctly produces the following bytecode snippet, where you c

[jira] [Comment Edited] (TINKERPOP-3015) Use wildcard instead of Object for hasId predicates

2023-12-18 Thread Christopher Smith (Jira)
., with {{javap -v}}) will show that the wrong overload is being selected. {code}Collection asString = List.of("a", "b"); @SuppressWarnings({ "unchecked", "rawtypes" }) Collection asObject = (Collection) asString; gts.V().hasId(P.within(asString)).iterate(); g

[jira] [Commented] (TINKERPOP-3015) Use wildcard instead of Object for hasId predicates

2023-11-15 Thread Valentyn Kahamlyk (Jira)
with compilation error? For me works without issues with latest 3.6.x and 3.7.x {code:java} Graph graph = TinkerFactory.createModern(); GraphTraversalSource g = graph.traversal(); Collection ids = Arrays.asList("1","2","3"); List vertices = g.V().hasId(P.within(ids)).toList(

[jira] [Created] (TINKERPOP-3015) Use wildcard instead of Object for hasId predicates

2023-11-10 Thread Christopher Smith (Jira)
Christopher Smith created TINKERPOP-3015: Summary: Use wildcard instead of Object for hasId predicates Key: TINKERPOP-3015 URL: https://issues.apache.org/jira/browse/TINKERPOP-3015 Project

[jira] [Closed] (TINKERPOP-2863) HasId Step generates incorrect results when given a list of IDs mid-traversal

2023-04-20 Thread Yang Xia (Jira)
> HasId Step generates incorrect results when given a list of IDs mid-traversal > - > > Key: TINKERPOP-2863 > URL: https://issues.apache.org/jira/browse/TINKERPOP-2863 >

[jira] [Assigned] (TINKERPOP-2863) HasId Step generates incorrect results when given a list of IDs mid-traversal

2023-04-20 Thread Yang Xia (Jira)
[ https://issues.apache.org/jira/browse/TINKERPOP-2863?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Yang Xia reassigned TINKERPOP-2863: --- Assignee: Yang Xia > HasId Step generates incorrect results when given a list of

[jira] [Commented] (TINKERPOP-2863) HasId Step generates incorrect results when given a list of IDs mid-traversal

2023-04-20 Thread ASF GitHub Bot (Jira)
://github.com/apache/tinkerpop/pull/2020 > HasId Step generates incorrect results when given a list of IDs mid-traversal > - > > Key: TINKERPOP-2863 > URL: https://issues.apache.

[jira] [Commented] (TINKERPOP-2863) HasId Step generates incorrect results when given a list of IDs mid-traversal

2023-04-20 Thread ASF GitHub Bot (Jira)
://github.com/apache/tinkerpop/pull/2019 > HasId Step generates incorrect results when given a list of IDs mid-traversal > - > > Key: TINKERPOP-2863 > URL: https://issues.apache.

[jira] [Commented] (TINKERPOP-2863) HasId Step generates incorrect results when given a list of IDs mid-traversal

2023-04-17 Thread ASF GitHub Bot (Jira)
://github.com/apache/tinkerpop/pull/2019#issuecomment-1512109947 > This needs feature tests to enforce the behavior. Added in https://github.com/apache/tinkerpop/pull/2019/commits/be12e6cfbd6d16501fb0d680786261a7caae35d9 > HasId Step generates incorrect results when given a list of I

[jira] [Commented] (TINKERPOP-2863) HasId Step generates incorrect results when given a list of IDs mid-traversal

2023-04-14 Thread ASF GitHub Bot (Jira)
://github.com/apache/tinkerpop/pull/2019#issuecomment-1508329466 This needs feature tests to enforce the behavior. > HasId Step generates incorrect results when given a list of IDs mid-traver

[jira] [Commented] (TINKERPOP-2863) HasId Step generates incorrect results when given a list of IDs mid-traversal

2023-04-13 Thread ASF GitHub Bot (Jira)
://github.com/apache/tinkerpop/pull/2019#issuecomment-1507835985 VOTE +1 > HasId Step generates incorrect results when given a list of IDs mid-traversal > - > > Key: TINKERPOP-2863 >

HasId() behaviour with list inputs

2023-04-13 Thread Yang Xia
Hi all, I was looking at the ticket, https://issues.apache.org/jira/browse/TINKERPOP-2863, which reported an inconsistency between start-step hasId() and mid-traversal hasId(). It looks like this is due to hasId() treating list types (i.e. a Collection) as a single object and uses P.eq instead

[jira] [Commented] (TINKERPOP-2863) HasId Step generates incorrect results when given a list of IDs mid-traversal

2023-04-12 Thread ASF GitHub Bot (Jira)
:mega: We’re building smart automated test selection to slash your CI/CD build times. [Learn more](https://about.codecov.io/iterative-testing/?utm_medium=referral_source=github_content=comment_campaign=pr+comments_term=The+Apache+Software+Foundation) > HasId Step generates incor

[jira] [Commented] (TINKERPOP-2863) HasId Step generates incorrect results when given a list of IDs mid-traversal

2023-04-12 Thread ASF GitHub Bot (Jira)
through the Review Comment: ```suggestion * be added as property. This method is the long-hand version of looping through the ``` > HasId Step generates incorrect results when given a list of IDs mid-traver

[jira] [Commented] (TINKERPOP-2863) HasId Step generates incorrect results when given a list of IDs mid-traversal

2023-04-12 Thread ASF GitHub Bot (Jira)
as property. This method is the long-hand version of looping through the Review Comment: ```suggestion * be added as property. This method is the long-hand version of looping through the ``` > HasId Step generates incorrect results when given a list of IDs mid-traver

[jira] [Commented] (TINKERPOP-2863) HasId Step generates incorrect results when given a list of IDs mid-traversal

2023-04-12 Thread ASF GitHub Bot (Jira)
} is a {@link VertexProperty}. This method is the long-hand version of * {@link #property(Object, Object, Object...)} with the difference that the {@link VertexProperty.Cardinality} * can be supplied. - * * + * * Review Comment: ```suggestion * * ``` > Ha

[jira] [Commented] (TINKERPOP-2863) HasId Step generates incorrect results when given a list of IDs mid-traversal

2023-04-12 Thread ASF GitHub Bot (Jira)
: https://github.com/apache/tinkerpop/pull/2020 Same changes as #2019, but for 3.6-dev instead, as there was an added null check in hasId() for 3.6, which led to changes to the Gherkin test suites. It appears that the previous implementation of hasId() omitted adding `null

[jira] [Commented] (TINKERPOP-2863) HasId Step generates incorrect results when given a list of IDs mid-traversal

2023-04-12 Thread ASF GitHub Bot (Jira)
://github.com/apache/tinkerpop/pull/2019#issuecomment-1505968768 LGTM, VOTE+1 > HasId Step generates incorrect results when given a list of IDs mid-traversal > - > > Key: TI

[jira] [Commented] (TINKERPOP-2863) HasId Step generates incorrect results when given a list of IDs mid-traversal

2023-04-12 Thread ASF GitHub Bot (Jira)
source=github_content=comment_campaign=pr+comments_term=The+Apache+Software+Foundation) > HasId Step generates incorrect results when given a list of IDs mid-traversal > - > > Key: TINKERPOP-2863 >

[jira] [Commented] (TINKERPOP-2863) HasId Step generates incorrect results when given a list of IDs mid-traversal

2023-04-12 Thread ASF GitHub Bot (Jira)
: https://github.com/apache/tinkerpop/pull/2019#discussion_r1164551918 ## gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/dsl/graph/GraphTraversal.java: ## @@ -1608,35 +1608,31 @@ public default GraphTraversal hasId(final Object id, final Object... other

[jira] [Commented] (TINKERPOP-2863) HasId Step generates incorrect results when given a list of IDs mid-traversal

2023-04-12 Thread ASF GitHub Bot (Jira)
: https://github.com/apache/tinkerpop/pull/2019 https://issues.apache.org/jira/browse/TINKERPOP-2863 Aligned mid-traversal hasId() processing of lists with TinkerGraphStep filtering, to use P.within to check within lists of ids instead of using P.eq to compare entire list

[jira] [Updated] (TINKERPOP-2863) HasId Step generates incorrect results when given a list of IDs mid-traversal

2023-03-24 Thread Yang Xia (Jira)
[ https://issues.apache.org/jira/browse/TINKERPOP-2863?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Yang Xia updated TINKERPOP-2863: Priority: Critical (was: Major) > HasId Step generates incorrect results when given a l

[jira] [Updated] (TINKERPOP-2863) HasId Step generates incorrect results when given a list of IDs mid-traversal

2023-02-06 Thread Stephen Mallette (Jira)
[ https://issues.apache.org/jira/browse/TINKERPOP-2863?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Stephen Mallette updated TINKERPOP-2863: Component/s: process > HasId Step generates incorrect results when gi

[jira] [Updated] (TINKERPOP-2863) HasId Step generates incorrect results when given a list of IDs mid-traversal

2023-02-01 Thread Taylor Riggan (Jira)
[ https://issues.apache.org/jira/browse/TINKERPOP-2863?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Taylor Riggan updated TINKERPOP-2863: - Description: In most situations, hasId() will accept a list of potential IDs

[jira] [Updated] (TINKERPOP-2863) HasId Step generates incorrect results when given a list of IDs mid-traversal

2023-02-01 Thread Taylor Riggan (Jira)
[ https://issues.apache.org/jira/browse/TINKERPOP-2863?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Taylor Riggan updated TINKERPOP-2863: - Description: In most situations, hasId() will accept a list of potential IDs

[jira] [Created] (TINKERPOP-2863) HasId Step generates incorrect results when given a list of IDs mid-traversal

2023-02-01 Thread Taylor Riggan (Jira)
Taylor Riggan created TINKERPOP-2863: Summary: HasId Step generates incorrect results when given a list of IDs mid-traversal Key: TINKERPOP-2863 URL: https://issues.apache.org/jira/browse/TINKERPOP-2863

[jira] [Commented] (TINKERPOP-2645) Improve behavior of hasId(null)

2021-12-14 Thread ASF GitHub Bot (Jira)
about this service, please contact Infrastructure at: us...@infra.apache.org > Improve behavior of hasId(null) > --- > > Key: TINKERPOP-2645 > URL: https://issues.apache.org/jira/browse/TINKERPOP-2645 >

[jira] [Closed] (TINKERPOP-2645) Improve behavior of hasId(null)

2021-12-14 Thread Stephen Mallette (Jira)
> Improve behavior of hasId(null) > --- > > Key: TINKERPOP-2645 > URL: https://issues.apache.org/jira/browse/TINKERPOP-2645 > Project: TinkerPop > Issue Type: Improvement > Componen

[jira] [Commented] (TINKERPOP-2645) Improve behavior of hasId(null)

2021-12-07 Thread ASF GitHub Bot (Jira)
: URL: https://github.com/apache/tinkerpop/pull/1511 https://issues.apache.org/jira/browse/TINKERPOP-2645 No significant change here really - mostly more tests in this area and a restructuring of how collections passed to `hasId()` are handled. All tests pass with `docker/build.sh -t

[jira] [Created] (TINKERPOP-2645) Improve behavior of hasId(null)

2021-11-09 Thread Stephen Mallette (Jira)
Stephen Mallette created TINKERPOP-2645: --- Summary: Improve behavior of hasId(null) Key: TINKERPOP-2645 URL: https://issues.apache.org/jira/browse/TINKERPOP-2645 Project: TinkerPop

[jira] [Closed] (TINKERPOP-2209) hasId is not converting properly when multiple values are passed

2019-05-06 Thread Chris Hupman (JIRA)
analysis.   Opened up an [issue in JanusGraph|[https://github.com/JanusGraph/janusgraph/issues/1554]] to resolve this.  > hasId is not converting properly when multiple values are passed > > > Key: TI

[jira] [Commented] (TINKERPOP-2209) hasId is not converting properly when multiple values are passed

2019-05-06 Thread Daniel Kuppitz (JIRA)
input variables to a backend query. I'm not entirely sure about it, but my guess is, that there are 2 different code paths in {{JanusGraphStep}} / {{JanusGraphStepStrategy}} - one of them converts the Integers, the other doesn't. > hasId is not converting properly when multiple values are pas

[jira] [Commented] (TINKERPOP-2209) hasId is not converting properly when multiple values are passed

2019-05-06 Thread Chris Hupman (JIRA)
ids = [4112,4128,4136,8232,12328,16424,20520,4296,4328,4344,8440,12536] ==>4112 ==>4128 ==>4136 ==>8232 ==>12328 ==>16424 ==>20520 ==>4296 ==>4328 ==>4344 ==>8440 ==>12536 gremlin> paths = g.V(ids).until(hasId(within(ids))).repeat(bothE().otherV().simplePath()).path().limit(5) gr

[jira] [Commented] (TINKERPOP-2209) hasId is not converting properly when multiple values are passed

2019-05-06 Thread Daniel Kuppitz (JIRA)
[ https://issues.apache.org/jira/browse/TINKERPOP-2209?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16834103#comment-16834103 ] Daniel Kuppitz commented on TINKERPOP-2209: --- This is the expected behavior. {{hasId

[jira] [Created] (TINKERPOP-2209) hasId is not converting properly when multiple values are passed

2019-05-06 Thread Chris Hupman (JIRA)
Chris Hupman created TINKERPOP-2209: --- Summary: hasId is not converting properly when multiple values are passed Key: TINKERPOP-2209 URL: https://issues.apache.org/jira/browse/TINKERPOP-2209 Project

[jira] [Closed] (TINKERPOP-1802) hasId() fails for empty collections

2017-11-07 Thread Marko A. Rodriguez (JIRA)
> hasId() fails for empty collections > --- > > Key: TINKERPOP-1802 > URL: https://issues.apache.org/jira/browse/TINKERPOP-1802 > Project: TinkerPop > Issue Type: Bug > Components: proce

[jira] [Commented] (TINKERPOP-1802) hasId() fails for empty collections

2017-11-07 Thread ASF GitHub Bot (JIRA)
at: https://github.com/apache/tinkerpop/pull/744 > hasId() fails for empty collections > --- > > Key: TINKERPOP-1802 > URL: https://issues.apache.org/jira/browse/TINKERPOP-1802 > Project: TinkerPop >

[GitHub] tinkerpop pull request #744: TINKERPOP-1802: hasId() fails for empty collect...

2017-11-07 Thread asfgit
Github user asfgit closed the pull request at: https://github.com/apache/tinkerpop/pull/744 ---

[jira] [Commented] (TINKERPOP-1802) hasId() fails for empty collections

2017-11-07 Thread ASF GitHub Bot (JIRA)
: https://github.com/apache/tinkerpop/pull/744 VOTE: +1 > hasId() fails for empty collections > --- > > Key: TINKERPOP-1802 > URL: https://issues.apache.org/jira/browse/TINKERPOP-1802 >

[GitHub] tinkerpop issue #744: TINKERPOP-1802: hasId() fails for empty collections

2017-11-07 Thread dkuppitz
Github user dkuppitz commented on the issue: https://github.com/apache/tinkerpop/pull/744 VOTE: +1 ---

[jira] [Commented] (TINKERPOP-1802) hasId() fails for empty collections

2017-11-07 Thread Bob Briody (JIRA)
(`filter(true)` in essence) all vertices once a `hasId([]) My fault - I misread this comment, got confused by `filter(true)`. Sorry for the noise. > hasId() fails for empty collections > --- > > Key: TINKERPOP-1802 >

[jira] [Commented] (TINKERPOP-1802) hasId() fails for empty collections

2017-11-07 Thread Robert Dale (JIRA)
().hasId([]).count() == 0 g.V().hasId(within([])).count() == 0 g.V().hasId(without([])).count() == 6 g.V().not(hasId([])).count() == 6 {noformat} > hasId() fails for empty collections > --- > > Key: TINKERPOP-1802 >

[jira] [Commented] (TINKERPOP-1802) hasId() fails for empty collections

2017-11-07 Thread Bob Briody (JIRA)
. The `hasId` Step semantics are "If an Element Traverser has an ID matching one of the items in this list, then emit it, else not.". So when the list is empty, no Element Traversers should be emitted, because no Element Traversers have an ID matching an item in the list. That may seem li

[jira] [Commented] (TINKERPOP-1802) hasId() fails for empty collections

2017-11-07 Thread ASF GitHub Bot (JIRA)
: https://github.com/apache/tinkerpop/pull/744 VOTE +1 > hasId() fails for empty collections > --- > > Key: TINKERPOP-1802 > URL: https://issues.apache.org/jira/browse/TINKERPOP-1802 >

[GitHub] tinkerpop issue #744: TINKERPOP-1802: hasId() fails for empty collections

2017-11-07 Thread robertdale
Github user robertdale commented on the issue: https://github.com/apache/tinkerpop/pull/744 VOTE +1 ---

[jira] [Commented] (TINKERPOP-1802) hasId() fails for empty collections

2017-11-07 Thread ASF GitHub Bot (JIRA)
] Finished at: 2017-11-06T21:46:16-07:00 [INFO] Final Memory: 162M/1713M [INFO] ``` > hasId() fails for empty collections > --- > > Key: TINKERPOP-1802 >

[jira] [Commented] (TINKERPOP-1802) hasId() fails for empty collections

2017-11-06 Thread ASF GitHub Bot (JIRA)
: https://github.com/apache/tinkerpop/pull/744 TINKERPOP-1802: hasId() fails for empty collections https://issues.apache.org/jira/browse/TINKERPOP-1802 If `hasId([])` is specified, then an `ArrayOutOfBoundsException` occurs. This has been fixed by simply filtering out (`filter(true

[GitHub] tinkerpop pull request #744: TINKERPOP-1802: hasId() fails for empty collect...

2017-11-06 Thread okram
GitHub user okram opened a pull request: https://github.com/apache/tinkerpop/pull/744 TINKERPOP-1802: hasId() fails for empty collections https://issues.apache.org/jira/browse/TINKERPOP-1802 If `hasId([])` is specified, then an `ArrayOutOfBoundsException` occurs. This has

[jira] [Assigned] (TINKERPOP-1802) hasId() fails for empty collections

2017-11-03 Thread Daniel Kuppitz (JIRA)
got my mail, but I pushed my dev branch for this issue. Everything's working on the TinkerGraph side, but Neo4j is broken and I still can't get my debugger working with Neo4j. > hasId() fails for empty collections > --- > > Key: TI

[jira] [Created] (TINKERPOP-1802) hasId() fails for empty collections

2017-10-18 Thread Daniel Kuppitz (JIRA)
Daniel Kuppitz created TINKERPOP-1802: - Summary: hasId() fails for empty collections Key: TINKERPOP-1802 URL: https://issues.apache.org/jira/browse/TINKERPOP-1802 Project: TinkerPop

Re: hasId

2017-05-28 Thread Daniel Kuppitz
.open() > ==>tinkergraph[vertices:0 edges:0] > gremlin> a = graph.addVertex(label, "A") > ==>v[0] > gremlin> b = graph.addVertex(label, "B") > ==>v[1] > gremlin> graph.traversal().V().hasId(a.id()).hasId(b.id()) > ==>v[0] > ==&g

Re: hasId

2017-05-28 Thread Daniel Kuppitz
Hi Pieter, that's a nasty bug. I just verified that it's also a bug in master/: gremlin> graph = TinkerGraph.open() ==>tinkergraph[vertices:0 edges:0] gremlin> a = graph.addVertex(label, "A") ==>v[0] gremlin> b = graph.addVertex(label, "B") ==>v[1] gre

RE: hasId

2017-05-28 Thread pieter gmail
s = graph.traversal().V().hasId(a.id()).hasId(b.id()).toList(); Assert.assertTrue(vertices.isEmpty()); } The test fails as the both vertices are returned. Is this expected, I expected 'and' not 'or' behavior. Similar to, @Test public void testHasLabel() { fin