Skip to content

Commit

Permalink
test: Add sqllogictest for apache#14208
Browse files Browse the repository at this point in the history
  • Loading branch information
nuno-faria committed Jan 21, 2025
1 parent 5f0bd17 commit d632d7a
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions datafusion/sqllogictest/test_files/insert.slt
Original file line number Diff line number Diff line change
Expand Up @@ -433,3 +433,30 @@ drop table test_column_defaults

statement error DataFusion error: Error during planning: Column reference is not allowed in the DEFAULT expression : Schema error: No field named a.
create table test_column_defaults(a int, b int default a+1)


# test inserting UInt64 and signed integers into a bigint unsigned column
statement ok
create table unsigned_bigint_test (v bigint unsigned)

query I
insert into unsigned_bigint_test values (10000000000000000000), (18446744073709551615)
----
2

query I
insert into unsigned_bigint_test values (10000000000000000001), (1), (10000000000000000002)
----
3

query I rowsort
select * from unsigned_bigint_test
----
1
10000000000000000000
10000000000000000001
10000000000000000002
18446744073709551615

statement ok
drop table unsigned_bigint_test

0 comments on commit d632d7a

Please sign in to comment.