File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
core/src/main/java/org/apache/calcite/sql/validate Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ private SqlValidatorNamespace resolveImpl(SqlIdentifier id) {
142142
143143 // Failed to match. If we're matching case-sensitively, try a more
144144 // lenient match. If we find something we can offer a helpful hint.
145- if (nameMatcher .isCaseSensitive ()) {
145+ if (nameMatcher .isCaseSensitive () && validator . config (). offerNotFoundHint () ) {
146146 final SqlNameMatcher liberalMatcher = SqlNameMatchers .liberal ();
147147 resolved .clear ();
148148 parentScope .resolveTable (names , liberalMatcher ,
Original file line number Diff line number Diff line change @@ -889,6 +889,12 @@ interface Config {
889889 */
890890 Config withIdentifierExpansion (boolean expand );
891891
892+ @ Value .Default default boolean offerNotFoundHint () {
893+ return true ;
894+ }
895+
896+ Config withOfferNotFoundHint (boolean expand );
897+
892898 /**
893899 * Returns whether to treat the query being validated as embedded
894900 * (as opposed to top-level).
You can’t perform that action at this time.
0 commit comments