What is distinct values?
Distinct values is a feature that stores unique string values of a column. It essentially run the following SQL:Currently the maximum number of distinct values that can be stored is 50.
Example
If a user askswhat is the average salary of software engineers in the U.S.?
, the AI model may generate the following SQL
AI-generated SQL without distinct values:
The AI model may not be aware that ‘U.S.’ and ‘United States’ are the same
country. As a result, the query may not return the correct results.
By using distinct values, the AI model improves the accuracy of the where
clause.