Skip to content

Commit 426c6d3

Browse files
committed
update error message
1 parent 655354e commit 426c6d3

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

datafusion/sql/src/statement.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -754,10 +754,7 @@ impl<'a, S: ContextProvider> SqlToRel<'a, S> {
754754
return not_impl_err!("SHOW COLUMNS LIMIT FROM not supported")?;
755755
}
756756
if filter_position.is_some() {
757-
return not_impl_err!("SHOW COLUMNS FILTER not supported")?;
758-
}
759-
if filter_position.is_some() {
760-
return not_impl_err!("SHOW COLUMNS FILTER not supported")?;
757+
return not_impl_err!("SHOW COLUMNS with WHERE or LIKE is not supported")?;
761758
}
762759
let Some(ShowStatementIn {
763760
// specifies if the syntax was `SHOW COLUMNS IN` or `SHOW

datafusion/sqllogictest/test_files/information_schema.slt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -483,10 +483,10 @@ set datafusion.catalog.information_schema = true;
483483
statement ok
484484
CREATE TABLE t AS SELECT 1::int as i;
485485

486-
statement error Error during planning: SHOW COLUMNS with WHERE or LIKE is not supported
486+
statement error DataFusion error: This feature is not implemented: SHOW COLUMNS with WHERE or LIKE is not supported
487487
SHOW COLUMNS FROM t LIKE 'f';
488488

489-
statement error Error during planning: SHOW COLUMNS with WHERE or LIKE is not supported
489+
statement error DataFusion error: This feature is not implemented: SHOW COLUMNS with WHERE or LIKE is not supported
490490
SHOW COLUMNS FROM t WHERE column_name = 'bar';
491491

492492
query TTTTTT

0 commit comments

Comments
 (0)