[jira] [Updated] (TINKERPOP-2901) Incorrect result caused by has(key, predicate)
[ https://issues.apache.org/jira/browse/TINKERPOP-2901?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Valentyn Kahamlyk updated TINKERPOP-2901: - Fix Version/s: 3.7.0 3.6.3 > Incorrect result caused by has(key, predicate) > -- > > Key: TINKERPOP-2901 > URL: https://issues.apache.org/jira/browse/TINKERPOP-2901 > Project: TinkerPop > Issue Type: Bug > Components: process >Affects Versions: 3.5.5 >Reporter: Miracy Cavendish >Priority: Critical > Fix For: 3.7.0, 3.6.3 > > > Hi! I execute the following gremlin statements: > > {code:java} > (1) g.V().where(__.values("PersonalId").is(within(4,8,7,10,9,3))).count() > => 6 > (2) > g.V().where(__.values("PersonalId").is(within(4,8,7,10,9,3))).has("prop4", > gt(1)).count() > => 0 > (3) > g.V().where(__.values("PersonalId").is(within(4,8,7,10,9,3))).not(__.has("prop4", > gt(1))).count() > => 4 > # Query Partition => (1) should equals (2) + (3) > (4) > g.V().where(__.values("PersonalId").is(within(4,8,7,10,9,3))).values("prop4") > => {-3.5550649939662193e+18, 1.1868212582852746e+18, NaN} > (5) g.inject(-3.5550649939662193e+18, 1.1868212582852746e+18, > Double.NaN).is(gt(1)).count() > => 1{code} > I believe there might be an issue with the has(key, predicate) method based > on the results that I have obtained. > However, I am having difficulty further isolating the bug. Would you be able > to help me reproduce the issue and confirm whether there is indeed a bug, or > if I may have misunderstood the has(key, predicate) method? Thank you. > The graph is created as follows: > {code:java} > g.addV("Vlabel1").property("prop4", > -2.2940462564994032e+17).property("prop30", > "1VjYYDjUBPCI5pKd").property("prop2", > 2.885236496196127e+18).property("prop27", > -1.283089519858595e+18).property("prop28", > -177934796716677957).property("prop11", > Double.POSITIVE_INFINITY).property("prop7", Double.NaN).property("prop13", > 1582080133).property("prop12", "ZfcpYP42sDhMoli").property("prop26", > -369822694828473072).property("prop15", false).property("prop24", > -2035481923).property("prop3", -8.101739153023826e+17).property("prop18", > -8647655841519618606).property("prop17", > Double.NEGATIVE_INFINITY).property("prop21", "9WXEq").property("prop5", > 7015971082047412708).property("prop23", false).property("prop16", > -2545300721734184124).property("prop8", false).property("prop9", > Double.NEGATIVE_INFINITY).property("prop19", -1148359097).property("prop10", > 707520215).property("prop29", 8230830081810437976).property("prop20", > 3.8750319078997024e+17).property("prop14", > 4460313502400034603).property("prop22", Double.NaN).property("PersonalId", > 1)g.addV("Vlabel2").property("prop13", 844274909).property("prop14", > -1075402369199667167).property("PersonalId", > 2)g.addV("Vlabel3").property("prop7", > 1.882109465594965e+18).property("prop15", false).property("prop4", > -3.5550649939662193e+18).property("prop9", > Double.POSITIVE_INFINITY).property("prop17", > Double.NEGATIVE_INFINITY).property("prop24", 1755404150).property("prop21", > "i4zl5FELCSxw977").property("prop13", 837413089).property("prop27", > Double.NaN).property("prop12", "qihyjdv4ac").property("prop2", > Double.NEGATIVE_INFINITY).property("prop22", > Double.POSITIVE_INFINITY).property("prop11", > -1.2786380272506816e+18).property("prop20", > 1.69612491533634e+18).property("prop30", > "IxJp6GCr5FRvbvpm6ua").property("prop29", > -7960090835127371110).property("prop25", true).property("prop18", > 1839549868490228748).property("prop16", > -5686358023541700304).property("prop5", > 5956272628376797503).property("prop19", -1735914445).property("prop23", > true).property("prop1", Double.POSITIVE_INFINITY).property("prop3", > -2.871901232555182e+16).property("prop26", > 7437263094806337639).property("prop8", false).property("PersonalId", > 3)g.addV("Vlabel4").property("prop3", > 1.5543717370352646e+17).property("prop18", > -7149746309261129994).property("prop24", -320785419).property("prop2", > -1.3058283314253888e+18).property("prop1", > -1.0673961612545854e+17).property("prop10", -601759324).property("prop16", > -2436094159597901640).property("prop8", false).property("prop30", > "gtrb5gw").property("prop26", 3672383367334424219).property("prop28", > 478907755955172).property("prop12", "w6ursX930r2Y7r").property("prop27", > 6.736691901333204e+17).property("prop6", > -5129032340661124781).property("prop9", > Double.POSITIVE_INFINITY).property("prop15", true).property("prop23", > true).property("prop29", 3775213037193570604).property("prop19", > 434486748).property("prop13", -1813611800).property("prop22", > Double.POSITIVE_INFINITY).property("prop5", > 6634760243334332508).property("prop11",
[jira] [Updated] (TINKERPOP-2901) Incorrect result caused by has(key, predicate)
[ https://issues.apache.org/jira/browse/TINKERPOP-2901?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Yang Xia updated TINKERPOP-2901: Priority: Critical (was: Major) > Incorrect result caused by has(key, predicate) > -- > > Key: TINKERPOP-2901 > URL: https://issues.apache.org/jira/browse/TINKERPOP-2901 > Project: TinkerPop > Issue Type: Bug > Components: process >Affects Versions: 3.5.5 >Reporter: Miracy Cavendish >Priority: Critical > > Hi! I execute the following gremlin statements: > > {code:java} > (1) g.V().where(__.values("PersonalId").is(within(4,8,7,10,9,3))).count() > => 6 > (2) > g.V().where(__.values("PersonalId").is(within(4,8,7,10,9,3))).has("prop4", > gt(1)).count() > => 0 > (3) > g.V().where(__.values("PersonalId").is(within(4,8,7,10,9,3))).not(__.has("prop4", > gt(1))).count() > => 4 > # Query Partition => (1) should equals (2) + (3) > (4) > g.V().where(__.values("PersonalId").is(within(4,8,7,10,9,3))).values("prop4") > => {-3.5550649939662193e+18, 1.1868212582852746e+18, NaN} > (5) g.inject(-3.5550649939662193e+18, 1.1868212582852746e+18, > Double.NaN).is(gt(1)).count() > => 1{code} > I believe there might be an issue with the has(key, predicate) method based > on the results that I have obtained. > However, I am having difficulty further isolating the bug. Would you be able > to help me reproduce the issue and confirm whether there is indeed a bug, or > if I may have misunderstood the has(key, predicate) method? Thank you. > The graph is created as follows: > {code:java} > g.addV("Vlabel1").property("prop4", > -2.2940462564994032e+17).property("prop30", > "1VjYYDjUBPCI5pKd").property("prop2", > 2.885236496196127e+18).property("prop27", > -1.283089519858595e+18).property("prop28", > -177934796716677957).property("prop11", > Double.POSITIVE_INFINITY).property("prop7", Double.NaN).property("prop13", > 1582080133).property("prop12", "ZfcpYP42sDhMoli").property("prop26", > -369822694828473072).property("prop15", false).property("prop24", > -2035481923).property("prop3", -8.101739153023826e+17).property("prop18", > -8647655841519618606).property("prop17", > Double.NEGATIVE_INFINITY).property("prop21", "9WXEq").property("prop5", > 7015971082047412708).property("prop23", false).property("prop16", > -2545300721734184124).property("prop8", false).property("prop9", > Double.NEGATIVE_INFINITY).property("prop19", -1148359097).property("prop10", > 707520215).property("prop29", 8230830081810437976).property("prop20", > 3.8750319078997024e+17).property("prop14", > 4460313502400034603).property("prop22", Double.NaN).property("PersonalId", > 1)g.addV("Vlabel2").property("prop13", 844274909).property("prop14", > -1075402369199667167).property("PersonalId", > 2)g.addV("Vlabel3").property("prop7", > 1.882109465594965e+18).property("prop15", false).property("prop4", > -3.5550649939662193e+18).property("prop9", > Double.POSITIVE_INFINITY).property("prop17", > Double.NEGATIVE_INFINITY).property("prop24", 1755404150).property("prop21", > "i4zl5FELCSxw977").property("prop13", 837413089).property("prop27", > Double.NaN).property("prop12", "qihyjdv4ac").property("prop2", > Double.NEGATIVE_INFINITY).property("prop22", > Double.POSITIVE_INFINITY).property("prop11", > -1.2786380272506816e+18).property("prop20", > 1.69612491533634e+18).property("prop30", > "IxJp6GCr5FRvbvpm6ua").property("prop29", > -7960090835127371110).property("prop25", true).property("prop18", > 1839549868490228748).property("prop16", > -5686358023541700304).property("prop5", > 5956272628376797503).property("prop19", -1735914445).property("prop23", > true).property("prop1", Double.POSITIVE_INFINITY).property("prop3", > -2.871901232555182e+16).property("prop26", > 7437263094806337639).property("prop8", false).property("PersonalId", > 3)g.addV("Vlabel4").property("prop3", > 1.5543717370352646e+17).property("prop18", > -7149746309261129994).property("prop24", -320785419).property("prop2", > -1.3058283314253888e+18).property("prop1", > -1.0673961612545854e+17).property("prop10", -601759324).property("prop16", > -2436094159597901640).property("prop8", false).property("prop30", > "gtrb5gw").property("prop26", 3672383367334424219).property("prop28", > 478907755955172).property("prop12", "w6ursX930r2Y7r").property("prop27", > 6.736691901333204e+17).property("prop6", > -5129032340661124781).property("prop9", > Double.POSITIVE_INFINITY).property("prop15", true).property("prop23", > true).property("prop29", 3775213037193570604).property("prop19", > 434486748).property("prop13", -1813611800).property("prop22", > Double.POSITIVE_INFINITY).property("prop5", > 6634760243334332508).property("prop11", Double.NaN).property("prop7", > 1.265249695254938e+18).property("prop17", >
[jira] [Updated] (TINKERPOP-2901) Incorrect result caused by has(key, predicate)
[ https://issues.apache.org/jira/browse/TINKERPOP-2901?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Valentyn Kahamlyk updated TINKERPOP-2901: - Component/s: process > Incorrect result caused by has(key, predicate) > -- > > Key: TINKERPOP-2901 > URL: https://issues.apache.org/jira/browse/TINKERPOP-2901 > Project: TinkerPop > Issue Type: Bug > Components: process >Affects Versions: 3.5.5 >Reporter: Miracy Cavendish >Priority: Major > > Hi! I execute the following gremlin statements: > > {code:java} > (1) g.V().where(__.values("PersonalId").is(within(4,8,7,10,9,3))).count() > => 6 > (2) > g.V().where(__.values("PersonalId").is(within(4,8,7,10,9,3))).has("prop4", > gt(1)).count() > => 0 > (3) > g.V().where(__.values("PersonalId").is(within(4,8,7,10,9,3))).not(__.has("prop4", > gt(1))).count() > => 4 > # Query Partition => (1) should equals (2) + (3) > (4) > g.V().where(__.values("PersonalId").is(within(4,8,7,10,9,3))).values("prop4") > => {-3.5550649939662193e+18, 1.1868212582852746e+18, NaN} > (5) g.inject(-3.5550649939662193e+18, 1.1868212582852746e+18, > Double.NaN).is(gt(1)).count() > => 1{code} > I believe there might be an issue with the has(key, predicate) method based > on the results that I have obtained. > However, I am having difficulty further isolating the bug. Would you be able > to help me reproduce the issue and confirm whether there is indeed a bug, or > if I may have misunderstood the has(key, predicate) method? Thank you. > The graph is created as follows: > {code:java} > g.addV("Vlabel1").property("prop4", > -2.2940462564994032e+17).property("prop30", > "1VjYYDjUBPCI5pKd").property("prop2", > 2.885236496196127e+18).property("prop27", > -1.283089519858595e+18).property("prop28", > -177934796716677957).property("prop11", > Double.POSITIVE_INFINITY).property("prop7", Double.NaN).property("prop13", > 1582080133).property("prop12", "ZfcpYP42sDhMoli").property("prop26", > -369822694828473072).property("prop15", false).property("prop24", > -2035481923).property("prop3", -8.101739153023826e+17).property("prop18", > -8647655841519618606).property("prop17", > Double.NEGATIVE_INFINITY).property("prop21", "9WXEq").property("prop5", > 7015971082047412708).property("prop23", false).property("prop16", > -2545300721734184124).property("prop8", false).property("prop9", > Double.NEGATIVE_INFINITY).property("prop19", -1148359097).property("prop10", > 707520215).property("prop29", 8230830081810437976).property("prop20", > 3.8750319078997024e+17).property("prop14", > 4460313502400034603).property("prop22", Double.NaN).property("PersonalId", > 1)g.addV("Vlabel2").property("prop13", 844274909).property("prop14", > -1075402369199667167).property("PersonalId", > 2)g.addV("Vlabel3").property("prop7", > 1.882109465594965e+18).property("prop15", false).property("prop4", > -3.5550649939662193e+18).property("prop9", > Double.POSITIVE_INFINITY).property("prop17", > Double.NEGATIVE_INFINITY).property("prop24", 1755404150).property("prop21", > "i4zl5FELCSxw977").property("prop13", 837413089).property("prop27", > Double.NaN).property("prop12", "qihyjdv4ac").property("prop2", > Double.NEGATIVE_INFINITY).property("prop22", > Double.POSITIVE_INFINITY).property("prop11", > -1.2786380272506816e+18).property("prop20", > 1.69612491533634e+18).property("prop30", > "IxJp6GCr5FRvbvpm6ua").property("prop29", > -7960090835127371110).property("prop25", true).property("prop18", > 1839549868490228748).property("prop16", > -5686358023541700304).property("prop5", > 5956272628376797503).property("prop19", -1735914445).property("prop23", > true).property("prop1", Double.POSITIVE_INFINITY).property("prop3", > -2.871901232555182e+16).property("prop26", > 7437263094806337639).property("prop8", false).property("PersonalId", > 3)g.addV("Vlabel4").property("prop3", > 1.5543717370352646e+17).property("prop18", > -7149746309261129994).property("prop24", -320785419).property("prop2", > -1.3058283314253888e+18).property("prop1", > -1.0673961612545854e+17).property("prop10", -601759324).property("prop16", > -2436094159597901640).property("prop8", false).property("prop30", > "gtrb5gw").property("prop26", 3672383367334424219).property("prop28", > 478907755955172).property("prop12", "w6ursX930r2Y7r").property("prop27", > 6.736691901333204e+17).property("prop6", > -5129032340661124781).property("prop9", > Double.POSITIVE_INFINITY).property("prop15", true).property("prop23", > true).property("prop29", 3775213037193570604).property("prop19", > 434486748).property("prop13", -1813611800).property("prop22", > Double.POSITIVE_INFINITY).property("prop5", > 6634760243334332508).property("prop11", Double.NaN).property("prop7", > 1.265249695254938e+18).property("prop17", >