Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Is there a way to test Pyspark Regex's?

I’d like to test different inputs to a pyspark regex to see if they fail/succeed before previewing/running a build. Is there a site/testing tool that exists for this purpose?

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

You can downsample your input using the Preview functionality in Authoring, where you can then specify a filter you want to craft your input for testing.

Then, you can run your PySpark code on this custom sample to verify it does what you expect.

You click on the gear in the following view after clicking the Preview button.

sampling

Then, you can describe what sample you want.

filtering

After you have this, running your regex on your input will be fast and easy to test.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading