Skip to content

Commit

Permalink
chore(duckdb): revert sql generation of struct construction
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Nov 12, 2024
1 parent 0557ce6 commit f91700b
Showing 1 changed file with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,24 +27,24 @@ WITH "t5" AS (
"t0"."field_of_study",
UNNEST(
CAST([
ROW('1970-71', "t0"."1970-71"),
ROW('1975-76', "t0"."1975-76"),
ROW('1980-81', "t0"."1980-81"),
ROW('1985-86', "t0"."1985-86"),
ROW('1990-91', "t0"."1990-91"),
ROW('1995-96', "t0"."1995-96"),
ROW('2000-01', "t0"."2000-01"),
ROW('2005-06', "t0"."2005-06"),
ROW('2010-11', "t0"."2010-11"),
ROW('2011-12', "t0"."2011-12"),
ROW('2012-13', "t0"."2012-13"),
ROW('2013-14', "t0"."2013-14"),
ROW('2014-15', "t0"."2014-15"),
ROW('2015-16', "t0"."2015-16"),
ROW('2016-17', "t0"."2016-17"),
ROW('2017-18', "t0"."2017-18"),
ROW('2018-19', "t0"."2018-19"),
ROW('2019-20', "t0"."2019-20")
{'years': '1970-71', 'degrees': "t0"."1970-71"},
{'years': '1975-76', 'degrees': "t0"."1975-76"},
{'years': '1980-81', 'degrees': "t0"."1980-81"},
{'years': '1985-86', 'degrees': "t0"."1985-86"},
{'years': '1990-91', 'degrees': "t0"."1990-91"},
{'years': '1995-96', 'degrees': "t0"."1995-96"},
{'years': '2000-01', 'degrees': "t0"."2000-01"},
{'years': '2005-06', 'degrees': "t0"."2005-06"},
{'years': '2010-11', 'degrees': "t0"."2010-11"},
{'years': '2011-12', 'degrees': "t0"."2011-12"},
{'years': '2012-13', 'degrees': "t0"."2012-13"},
{'years': '2013-14', 'degrees': "t0"."2013-14"},
{'years': '2014-15', 'degrees': "t0"."2014-15"},
{'years': '2015-16', 'degrees': "t0"."2015-16"},
{'years': '2016-17', 'degrees': "t0"."2016-17"},
{'years': '2017-18', 'degrees': "t0"."2017-18"},
{'years': '2018-19', 'degrees': "t0"."2018-19"},
{'years': '2019-20', 'degrees': "t0"."2019-20"}
] AS STRUCT("years" TEXT, "degrees" BIGINT)[])
) AS "__pivoted__"
FROM "humanities" AS "t0"
Expand Down

0 comments on commit f91700b

Please sign in to comment.