Home > Net >  Is there a way to test Pyspark Regex's?
Is there a way to test Pyspark Regex's?

Time:11-17

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?

CodePudding user response:

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.

  • Related