code: def read_sql(self, code: str) -> pandas.DataFrame:
          
          if self.kind != SessionKind.SQL:
              raise ValueError("not a SQL session")
          output = self._execute(code)
          output.raise_for_status()
          if output.json is None:
              raise RuntimeError("statement had no JSON output")
          return dataframe_from_json_output(output.json)
docs: Evaluate a Spark SQL satatement and retrieve the result.
  
          :param code: The Spark SQL statement to evaluate.