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

DDLOG fails when views depend on views #421

Closed
raphaelhoffmann opened this issue Sep 29, 2015 · 2 comments · Fixed by #445
Closed

DDLOG fails when views depend on views #421

raphaelhoffmann opened this issue Sep 29, 2015 · 2 comments · Fixed by #445

Comments

@raphaelhoffmann
Copy link
Contributor

Consider the following DDLOG snippet:

wordidxs_unnested(doc_id, sent_id, UNNEST(wordidxs)) :-
  locations(id, doc_id, sent_id, wordidxs, mention_id, type, entity, words, is_correct, features).

wordidxs_tmp1(doc_id, sent_id, MIN(wordidxs) - 1) :-
  wordidxs_unnested(doc_id, sent_id, wordidxs).

Running this program the second time crashes DeepDive, because it cannot drop view wordidxs_unnested (view wordidxs_tmp1 depends on it).

There may be a better fix, but one work-around is to generate deepdive.conf and append CASCADE to

DROP VIEW IF EXISTS wordidxs_unnested;
@juhanaka
Copy link
Contributor

I can take a look at this.

@netj
Copy link
Contributor

netj commented Oct 21, 2015

@juhanaka awesome! You'll need to see https://github.com/HazyResearch/ddlog to fix the compiler.

@netj netj added this to the DeepDive 0.8.0 milestone Dec 17, 2015
netj added a commit that referenced this issue Jan 23, 2017
Added CASCADE when dropping view.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants