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

support for sparse param for endpoints returning RCA #219

Open
alexandersimoes opened this issue Oct 21, 2019 · 0 comments
Open

support for sparse param for endpoints returning RCA #219

alexandersimoes opened this issue Oct 21, 2019 · 0 comments

Comments

@alexandersimoes
Copy link

I am trying to use the sparse=true param for an endpoint returning RCAs and getting the following error:

Server error: `ERROR DB::Exception (47): DB::Exception: Missing columns: 'final_m0' while processing query: 

Here is an example URL: https://api.oec.world/tesseract/data.jsonrecords?cube=trade_i_baci_a_92&Exporter+Country=sapry&time=year.latest&drilldowns=Year&measures=Trade+Value&parents=true&rca=Exporter+Country,HS4,Trade+Value&sparse=true

And for the use case behind this: the networks on the OEC rely on the above data call but since they only return data when the given country exports that product we end up with a lot of "blanks" in the network viz.

Screen Shot 2019-10-21 at 12 04 31 PM

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

No branches or pull requests

2 participants