Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filtering clause returns unexpected failure #2

Closed
xllora opened this issue May 24, 2017 · 1 comment
Closed

Filtering clause returns unexpected failure #2

xllora opened this issue May 24, 2017 · 1 comment
Labels

Comments

@xllora
Copy link
Owner

xllora commented May 24, 2017

Given the following data set

/_<c175b457-e6d6-4ce3-8312-674353815720>	"_predicate"@[]	"/some/immutable/id"@[]
/_<c175b457-e6d6-4ce3-8312-674353815720>	"_owner"@[2017-05-23T16:41:12.187373-07:00]	/gid<0x9>
/_<c175b457-e6d6-4ce3-8312-674353815720>	"_subject"@[]	/aid</some/subject/id>
/_<c175b457-e6d6-4ce3-8312-674353815720>	"_object"@[]	/aid</some/object/id>
/_<cd8bae87-be96-41af-b1a8-27df990c9825>	"_object"@[2017-05-23T16:41:12.187373-07:00]	/aid</some/object/id>
/_<cd8bae87-be96-41af-b1a8-27df990c9825>	"_owner"@[2017-05-23T16:41:12.187373-07:00]	/gid<0x6>
/_<cd8bae87-be96-41af-b1a8-27df990c9825>	"_predicate"@[2017-05-23T16:41:12.187373-07:00]	"/some/temporal/id"@[2017-05-23T16:41:12.187373-07:00]
/_<cd8bae87-be96-41af-b1a8-27df990c9825>	"_subject"@[2017-05-23T16:41:12.187373-07:00]	/aid</some/subject/id>
/aid</some/subject/id>	"/some/temporal/id"@[2017-05-23T16:41:12.187373-07:00]	/aid</some/object/id>
/aid</some/subject/id>	"/some/immutable/id"@[]	/aid</some/object/id>
/aid</some/subject/id>	"/some/ownerless_temporal/id"@[2017-05-23T16:41:12.187373-07:00]	/aid</some/object/id>

The following query succeeds as expected.

bql> SELECT ?bn,?p, ?o 
     FROM ?test 
     WHERE { 
          ?bn "_subject"@[,]    /aid</some/subject/id>. 
          ?bn "_predicate"@[,] ?p .
          ?bn "_object"@[,] ?o 
      };

?bn	?p	?o
/_<cd8bae87-be96-41af-b1a8-27df990c9825>	"/some/temporal/id"@[2017-05-23T16:41:12.187373-07:00]	/aid</some/object/id>

[OK] Time spent:  578.963µs

However, when you specify ?o, it fails with a filtering error.

bql> SELECT ?bn,?p  
     FROM ?test 
     WHERE { 
          ?bn "_subject"@[,]    /aid</some/subject/id>. 
          ?bn "_predicate"@[,] ?p . 
          ?bn "_object"@[,] /aid</some/object/id>
      };

[ERROR] planner.Execute: failed to execute insert plan with error failed to fully specify clause { ?bn "_object"@[,] /aid</some/object/id> } for row map[?bn:/_<cd8bae87-be96-41af-b1a8-27df990c9825>]
Time spent:  514.294µs

Given the this is just and update on the query above, this should have not failed and return one row with ?bn and ?p bindings.

@xllora xllora added the bug label May 24, 2017
@xllora
Copy link
Owner Author

xllora commented May 24, 2017

Filed under wrong project

google/badwolf#70

@xllora xllora closed this as completed May 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant