code: def queryName(self, queryName):
          
          if not queryName or type(queryName) != str or len(queryName.strip()) == 0:
              raise ValueError('The queryName must be a non-empty string. Got: %s' % queryName)
          self._jwrite = self._jwrite.queryName(queryName)
          return self
docs: Specifies the name of the :class:`StreamingQuery` that can be started with
          :func:`start`. This name must be unique among all the currently active queries
          in the associated SparkSession.
  
          .. note:: Evolving.
  
          :param queryName: unique name for the query
  
          >>> writer = sdf.writeStream.queryName('streaming_query')