queryparser icon indicating copy to clipboard operation
queryparser copied to clipboard

Is there a Python wrapper I can use?

Open VatsalPatel93 opened this issue 6 years ago • 5 comments

Hey,First of all, it's an amazing effort towards building a parser. I am trying to use this tool to parse hive and vertica queries. I am able to get the example and demo working but I am not sure how to use this library from within Python. Do you have any wrapper I can use or maybe give out steps to follow?

VatsalPatel93 avatar Jul 16 '18 22:07 VatsalPatel93

Hey there!

Thanks for giving this a whirl! Right now, we don't have a python wrapper available, but it's certainly a tooling we want.

In the meantime, have you looked around at other ways for running haskell on python? I think there are a few methods out there, like https://github.com/nh2/haskell-from-python, and if you get it working I'd be more than happy to document it.

Cheers, Heli

h4v0kh3l1 avatar Jul 17 '18 17:07 h4v0kh3l1

I have tried that particular option and also few other options. But it seems like, specially with the option you have suggested, there is a lot of problem with package dependencies. I changed all the cabal files according to my package versions but still an error.

VatsalPatel93 avatar Jul 17 '18 21:07 VatsalPatel93

Did anyone find a way to use queryparser from python?

LeTristanB avatar Jan 18 '19 22:01 LeTristanB

If memory serves, in the early days of trying to figure out how we were going to get it running on Uber infrastructure I got it working with HaPy (handing JSON to the python). That's not ultimately the path we took, so I don't know if it holds up when used in anger.

dlthomas avatar Jan 18 '19 22:01 dlthomas

Any updates or workarounds on this?

SylexHakkoda avatar Feb 07 '23 17:02 SylexHakkoda