heavyai / heavyai-crossfilter

JavaScript library for exploring large multivariate datasets in the browser.
Other
51 stars 20 forks source link

How to get SQL query from MAPD crossfilter #58

Open sachinpkaushik2383 opened 6 years ago

sachinpkaushik2383 commented 6 years ago

Hi I needed to fetch the SQL as string from mapd-crossfilter to embed in my vega spec can anyone help me in this regard.

biovisualize commented 6 years ago

Can you post this question on the community forum https://community.mapd.com/ ? We can help you from there, just to leave Github issues for bug reports and feature requests. I'm pretty sure the answer will be around Crossfilter.writeQuery https://github.com/mapd/mapd-crossfilter/blob/master/src/mapd-crossfilter.js#L1198

sachinpkaushik2383 commented 6 years ago

Hi I have made changes in the attached js file in order to expose writeQuery function for getting access to SQL queries, can anyone from the code reviewer team pls review the js file and let me know if I have done it correctly or suggest changes if required.

@biovisualize : You were right about the method to use and it is feature I need in my requirement.

mapd-crossfilter.js.zip