Skip to content

Commit

Permalink
adding more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Lordworms committed Feb 7, 2024
1 parent 8175e83 commit e849931
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions datafusion/sqllogictest/test_files/scalar.slt
Original file line number Diff line number Diff line change
Expand Up @@ -1980,3 +1980,19 @@ query I
select 100000 where position('legend' in 'league of legend') = 11;
----
100000

# test null
query ?
select position(null in null)
----
NULL


query I
select position('' in '')
----
1


query error DataFusion error: Error during planning: The "instr" function can only accept strings, but got Int64\.
select position(1 in 1)

0 comments on commit e849931

Please sign in to comment.