Add support for exporting a ColumnList from a subquery.

This commit is contained in:
go-jet 2025-03-13 12:45:01 +01:00
parent 13ad686ac4
commit 85ea908285
3 changed files with 124 additions and 7 deletions

View file

@ -332,13 +332,7 @@ func TestSelectJson_GroupBy(t *testing.T) {
).AsTable("customers_info")
stmt := SELECT_JSON_ARR(
subQuery.AllColumns().Except( // TODO: remove when ColumnList.From() is implemented
FloatColumn("sum"),
FloatColumn("avg"),
FloatColumn("max"),
FloatColumn("min"),
FloatColumn("count"),
),
Customer.AllColumns.From(subQuery),
SELECT_JSON_OBJ(
FloatColumn("sum").From(subQuery),