SqlFormatter converts a parsed sql statement back in to the sql text. KSQL uses this to generate statement text to be written to the command topic after inferring schemas. This class is not adequately tested atm. One option suggested by @apurvam is to extend the QueryValidationTests to test this by having them rewrite each query and ensure that the valid outputs are produced.
SqlFormatter converts a parsed sql statement back in to the sql text. KSQL uses this to generate statement text to be written to the command topic after inferring schemas. This class is not adequately tested atm. One option suggested by @apurvam is to extend the QueryValidationTests to test this by having them rewrite each query and ensure that the valid outputs are produced.