futurewei-cloud / chogori-sql

Horizontally scalable SQL Service built upon Chogori-Platform SKV storage
Other
5 stars 6 forks source link

Fix foreign key SEGFAULT issue and fix yb_foreign_key tests #283

Closed johnfangAFW closed 3 years ago

johnfangAFW commented 3 years ago

1) Fixed the segment fault caused by the wrong is_null flag 2) Fixed the tuple order in BuildPgTupleId logic 3) Disabled the truncate table tests in yb_foreign_key since table truncation has not been implemented yet

TPCC and integration tests all passed.

yb_foreign_key passed and we only have yb_pg_foreign_key failure now, which will be addressed differently.

../../../src/test/regress/pg_regress --inputdir=/build/src/k2/postgres/src/test/regress --bindir='/build/src/k2/postgres/bin' --dlpath=. --dbname=postgres --schedule=/build/src/k2/postgres/src/test/regress/chogori_schedule (using postmaster on Unix socket, default port) ============== running regression test queries ============== test yb_int2 ... ok test yb_pg_int4 ... ok test yb_pg_int8 ... ok test yb_numeric ... ok test yb_numeric_big ... ok test yb_boolean ... ok test yb_date ... ok test yb_time ... ok test yb_timestamp ... ok test yb_interval ... ok test yb_inet ... ok test yb_macaddr ... ok test yb_macaddr8 ... ok test yb_point ... ok test yb_path ... ok test yb_line ... ok test yb_lseg ... ok test yb_box ... ok test yb_circle ... ok test yb_polygon ... ok test yb_geometry ... ok test yb_bit ... ok test yb_char ... ok test yb_text ... ok test yb_bytea ... ok test yb_pg_json ... ok test yb_tstypes ... ok test yb_uuid ... ok test yb_foreign_key ... ok test yb_pg_foreign_key ... FAILED test yb_compound_key ... ok test yb_select ... ok test yb_dml_single_row ... ok

======================= 1 of 33 tests failed.