class_docstr: Executes SQL code in a specific database.
  
  When implementing a specific Operator, you can also implement `_process_output` method in the
  hook to perform additional processing of values returned by the DB Hook of yours. For example, you
  can join description retrieved from the cursors of your statements with returned values, or save
  the output of your operator to a file.
  
  :param sql: the SQL code or string pointing to a template file to be executed (templated).
      File must have a '.sql' extension.
  :param autocommit: (optional) if True, each command is automatically committed (default: False).
  :param parameters: (optional) the parameters to render the SQL query with.
  :param handler: (optional) the function that will be applied to the cursor (default: fetch_all_handler).
  :param split_statements: (optional) if split single SQL string into statements. By default, defers
      to the default value in the ``run`` method of the configured hook.
  :param conn_id: the connection ID used to connect to the database
  :param database: name of database which overwrite the defined one in connection
  :param return_last: (optional) return the result of only last statement (default: True).
  :param show_return_value_in_logs: (optional) if true operator output will be printed to the task log.
      Use with caution. It's not recommended to dump large datasets to the log. (default: False).
  
  .. seealso::
      For more information on how to use this operator, take a look at the guide:
      :ref:`howto/operator:SQLExecuteQueryOperator`
class_docstr_tok: ["Executes","SQL","code","in","a","specific","database",".","When","implementing","a","specific","Operator",",","you","can","also","implement","`","_process_output","`","method","in","the","hook","to","perform","additional","processing","of","values","returned","by","the","DB","Hook","of","yours",".","For","example",",","you","can","join","description","retrieved","from","the","cursors","of","your","statements","with","returned","values",",","or","save","the","output","of","your","operator","to","a","file",".",":","param","sql",":","the","SQL","code","or","string","pointing","to","a","template","file","to","be","executed","(","templated",")",".","File","must","have","a","'.sql","'","extension",".",":","param","autocommit",":","(","optional",")","if","True",",","each","command","is","automatically","committed","(","default",":","False",")",".",":","param","parameters",":","(","optional",")","the","parameters","to","render","the","SQL","query","with",".",":","param","handler",":","(","optional",")","the","function","that","will","be","applied","to","the","cursor","(","default",":","fetch_all_handler",")",".",":","param","split_statements",":","(","optional",")","if","split","single","SQL","string","into","statements",".","By","default",",","defers","to","the","default","value","in","the","``","run","``","method","of","the","configured","hook",".",":","param","conn_id",":","the","connection","ID","used","to","connect","to","the","database",":","param","database",":","name","of","database","which","overwrite","the","defined","one","in","connection",":","param","return_last",":","(","optional",")","return","the","result","of","only","last","statement","(","default",":","True",")",".",":","param","show_return_value_in_logs",":","(","optional",")","if","true","operator","output","will","be","printed","to","the","task","log",".","Use","with","caution",".","It","'s","not","recommended","to","dump","large","datasets","to","the","log",".","(","default",":","False",")",".","..","seealso",":",":","For","more","information","on","how","to","use","this","operator",",","take","a","look","at","the","guide",":",":","ref",":","`","howto\/operator",":","SQLExecuteQueryOperator","`"]
docstr: Process output before it is returned by the operator.
  
  It can be overridden by the subclass in case some extra processing is needed. Note that unlike
  DBApiHook return values returned - the results passed and returned by ``_process_output`` should
  always be lists of results - each element of the list is a result from a single SQL statement
  (typically this will be list of Rows). You have to make sure that this is the same for returned
  values = there should be one element in the list for each statement executed by the hook..
  
  The "process_output" method can override the returned output - augmenting or processing the
  output as needed - the output returned will be returned as execute return value and if
  do_xcom_push is set to True, it will be set as XCom returned.
  
  :param results: results in the form of list of rows.
  :param descriptions: list of descriptions returned by ``cur.description`` in the Python DBAPI
docstr_tok: ["Process","output","before","it","is","returned","by","the","operator",".","It","can","be","overridden","by","the","subclass","in","case","some","extra","processing","is","needed",".","Note","that","unlike","DBApiHook","return","values","returned","-","the","results","passed","and","returned","by","``","_process_output","``","should","always","be","lists","of","results","-","each","element","of","the","list","is","a","result","from","a","single","SQL","statement","(","typically","this","will","be","list","of","Rows",")",".","You","have","to","make","sure","that","this","is","the","same","for","returned","values","=","there","should","be","one","element","in","the","list","for","each","statement","executed","by","the","hook","..","The","``","process_output","''","method","can","override","the","returned","output","-","augmenting","or","processing","the","output","as","needed","-","the","output","returned","will","be","returned","as","execute","return","value","and","if","do_xcom_push","is","set","to","True",",","it","will","be","set","as","XCom","returned",".",":","param","results",":","results","in","the","form","of","list","of","rows",".",":","param","descriptions",":","list","of","descriptions","returned","by","``","cur.description","``","in","the","Python","DBAPI"]
code: def _process_output(
      self,
      results: list[Any],
      descriptions: list[Sequence[Sequence] | None],
  ) -> list[Any]:
      """
      Process output before it is returned by the operator.
  
      It can be overridden by the subclass in case some extra processing is needed. Note that unlike
      DBApiHook return values returned - the results passed and returned by ``_process_output`` should
      always be lists of results - each element of the list is a result from a single SQL statement
      (typically this will be list of Rows). You have to make sure that this is the same for returned
      values = there should be one element in the list for each statement executed by the hook..
  
      The "process_output" method can override the returned output - augmenting or processing the
      output as needed - the output returned will be returned as execute return value and if
      do_xcom_push is set to True, it will be set as XCom returned.
  
      :param results: results in the form of list of rows.
      :param descriptions: list of descriptions returned by ``cur.description`` in the Python DBAPI
      """
      if self.show_return_value_in_logs:
          self.log.info("Operator output is: %s", results)
      return results
  
imports: from __future__ import annotations
  import ast
  import re
  from functools import cached_property
  from typing import TYPE_CHECKING, Any, Callable, Iterable, Mapping, NoReturn, Sequence, SupportsAbs
  from airflow.exceptions import AirflowException, AirflowFailException
  from airflow.hooks.base import BaseHook
  from airflow.models import BaseOperator, SkipMixin
  from airflow.providers.common.sql.hooks.sql import DbApiHook, fetch_all_handler, return_single_query_results
  from airflow.utils.helpers import merge_dicts
label_desc: Use image node_id 2 for calling the SQLExecuteQueryOperator obj's underlying member method code with example usage: obj._process_output(results, descriptions) and returns: results