Skip to content

Commit

Permalink
fix sqllogictest
Browse files Browse the repository at this point in the history
  • Loading branch information
niebayes committed Jan 10, 2025
1 parent 9afab65 commit 3cf710c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions datafusion/sqllogictest/test_files/math.slt
Original file line number Diff line number Diff line change
Expand Up @@ -126,15 +126,15 @@ statement error
SELECT abs(1, 2);

# abs: unsupported argument type
query error This feature is not implemented: Unsupported data type Utf8 for function abs
query error DataFusion error: Error during planning: The signature expected NativeType::Numeric but received NativeType::String
SELECT abs('foo');

# abs: numeric string
# TODO: In Postgres, '-1.2' is unknown type and interpreted to float8 so they don't fail on this query
query error DataFusion error: This feature is not implemented: Unsupported data type Utf8 for function abs
query error DataFusion error: Error during planning: The signature expected NativeType::Numeric but received NativeType::String
select abs('-1.2');

query error DataFusion error: This feature is not implemented: Unsupported data type Utf8 for function abs
query error DataFusion error: Error during planning: The signature expected NativeType::Numeric but received NativeType::String
select abs(arrow_cast('-1.2', 'Utf8'));

statement ok
Expand Down

0 comments on commit 3cf710c

Please sign in to comment.