Gql formatter

broken image

Style for Python formatting, interface to. h, -help show this help message and exit Use as command-line tool usage: pysqlformatter ] ] įormatter for Pyspark code and SparkSQL queries. Pysqlformatter can be used as either a command-line tool or a Python library. Installation Install using pip pip install pysqlformatter Cases like spark.sql('xxx'.format()), spark.sql('xxx'.replace()) may raise Exceptions. The queries should be in the form spark.sql(query) or spark.sql('xxx').

broken image

User can specify configurations for either formatter separately.

broken image

It relies on Python formatter yapf and SparkSQL formatter sparksqlformatter, both working indepdendently. A formatter for Pyspark code with SQL queries.

broken image