class_docstr: Parses an UPDATE query into its component parts.
  
  Parameters
  ----------
  query : ast.Update
      Given SQL UPDATE query.
  supported_columns : List[Text], Optional
      List of columns supported by the table for updating.
class_docstr_tok: ["Parses","an","UPDATE","query","into","its","component","parts",".","Parameters","--","--","--","--","--","query",":","ast.Update","Given","SQL","UPDATE","query",".","supported_columns",":","List","[","Text","]",",","Optional","List","of","columns","supported","by","the","table","for","updating","."]
docstr: Parses the SET clause of the query and returns a dictionary of columns and values to update.
docstr_tok: ["Parses","the","SET","clause","of","the","query","and","returns","a","dictionary","of","columns","and","values","to","update","."]
code: def parse_set_clause(self):
      """
      Parses the SET clause of the query and returns a dictionary of columns and values to update.
      """
      values = list(self.query.update_columns.items())
  
      values_to_update = {}
      for value in values:
          if self.supported_columns:
              if value[0] not in self.supported_columns:
                  raise UnsupportedColumnException(
                      f"Unsupported column: {value[0]}"
                  )
  
          values_to_update[value[0]] = value[1].value
  
      return values_to_update
  
file_path: mindsdb/mindsdb/integrations/handlers/utilities/query_utilities/update_query_utilities.py
imports: from mindsdb_sql.parser import ast
  from typing import Text, List, Optional
  from .exceptions import UnsupportedColumnException
  from mindsdb.integrations.handlers.utilities.query_utilities.base_query_utilities import BaseQueryParser
  from mindsdb.integrations.handlers.utilities.query_utilities.base_query_utilities import BaseQueryExecutor
label_desc: Use image node_id 3 for calling the UPDATEQueryParser obj's underlying member method code with example usage: obj.parse_set_clause() and returns: values_to_update