# Copyright Materialize, Inc. and contributors. All rights reserved. # # Use of this software is governed by the Business Source License # included in the LICENSE file at the root of this repository. # # As of the Change Date specified in that file, in accordance with # the Business Source License, use of this software will be governed # by the Apache License, Version 2.0. # Regression test for https://github.com/MaterializeInc/database-issues/issues/2996. mode cockroach query IIIT rowsort SELECT t.*, CASE WHEN x IS NULL THEN NULL ELSE t.* END FROM ROWS FROM ( generate_series(1, 2), information_schema._pg_expandarray(ARRAY[100]) ) AS t ---- 1 100 1 (1,100,1) 2 NULL NULL NULL