(self, field_name, table_name)
Return a list of distinct values of field

        Parameters
        ----------
        field_name : name of the field
        table_name : name of the table or query to search

        Returns
        -------
        List[str] of values
Return a list of distinct values of field
Return a list of distinct values of field
def get_distinct_values(self, field_name, table_name):
        """Return a list of distinct values of field

        Parameters
        ----------
        field_name : name of the field
        table_name : name of the table or query to search

        Returns
        -------
        List[str] of values
        """
        query = self.distinct_values_query(field_name, table_name)
        with self.execute_sql_query(query) as cur:
            values = cur.fetchall()
        if len(values) > 20:
            return ()
        else:
            return tuple(str(x[0]) for x in values)
def get_distinct_values ( self , field_name , table_name ) : query = self . distinct_values_query ( field_name , table_name ) with self . execute_sql_query ( query ) as cur : values = cur . fetchall ( ) if len ( values ) > 20 : return ( ) else : return tuple ( str ( x [ 0 ] ) for x in values )