Skip to content

Commit

Permalink
fix(risingwave): gen correct jsonb extract path function
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Mar 12, 2024
1 parent 306d0fc commit 7b0d6a9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ WITH "t5" AS (
FROM (
SELECT
"t1"."field_of_study",
CAST(TO_JSONB("t1"."__pivoted__") -> 'f1' AS VARCHAR) AS "years",
CAST(TO_JSONB("t1"."__pivoted__") -> 'f2' AS BIGINT) AS "degrees"
CAST(JSONB_EXTRACT_PATH(TO_JSONB("t1"."__pivoted__"), 'f1') AS VARCHAR) AS "years",
CAST(JSONB_EXTRACT_PATH(TO_JSONB("t1"."__pivoted__"), 'f2') AS BIGINT) AS "degrees"
FROM (
SELECT
"t0"."field_of_study",
Expand Down

0 comments on commit 7b0d6a9

Please sign in to comment.