code: def get_sql(self, debug=False, use_cache=True):
          
          # TODO: implement caching and debug
          sql = ''
          sql += self.build_partition_by_fields()
          sql += self.build_order_by(use_alias=False)
          sql += self.build_limit()
          sql = sql.strip()
          sql = 'OVER ({0})'.format(sql)
          self.sql = sql
  
          return self.sql
docs: Generates the sql for this query window and returns the sql as a string.
  
          :type debug: bool
          :param debug: If True, the sql will be returned in a format that is easier to read and debug.
              Defaults to False
  
          :type use_cache: bool
          :param use_cache: If True, the query will returned the cached sql if it exists rather
              then generating the sql again. If False, the sql will be generated again. Defaults to True.
  
          :rtype: str
          :return: The generated sql for this query window