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

Copy statement fails silently if no create target is specified #42

Open
bruth opened this issue Sep 27, 2013 · 1 comment
Open

Copy statement fails silently if no create target is specified #42

bruth opened this issue Sep 27, 2013 · 1 comment
Labels

Comments

@bruth
Copy link

bruth commented Sep 27, 2013

I had this:

copy query clarity.queries.patients from "clarity" to "target"

and needed this:

copy query clarity.queries.patients from "clarity" to "target" create "patients"
@mitalia
Copy link
Contributor

mitalia commented Jun 27, 2014

This is because of the way the DSL is implemented. This is actually a very difficult thing to fix because what happens here is that

copy query clarity.queries.patients from "clarity" to "target"

creates an instance of ToFromTable. This class has methods like append or create, however using this approach, there is no way to ensure that one of those methods gets called. It might be necessary to have these somehow be part of the ToFromTable constructor as a function argument. You could then check to see if it is set at object creation time and if not, throw an error.

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

2 participants