Reltio Integration Hub

 View Only
  • 1.  Not able to execute the custom snowflake query with flattening function of JSON column

    Reltio Partner
    Posted 11-05-2024 12:48

    Hi Team,
    In our project, we are loading data from snowflake tables into Reltio. We are receiving complex json data in some of the columns.
    We have flatten the json column and able to get the proper result in snowflake but when we use the same query in RIH, we are getting below error because in query we are using ":" to flatten json data which is casuing issue.

    Error :
    SQL:  Bind variable "Name" is either missing or does not have a value in input field

    Sample Query Used:
    select id,
    b.value:Name as Name from table a,
    lateral flatten(input => try_parse_json(a.jsonArray)) b

    Can you please let us how to resolve the issue or another way to run the custom SQL without error?
    Note: When we use the same query to generate the output schema in RIH, output schema got generated successfully.



    ------------------------------
    Rahul Rajan
    Fresh Gravity
    ------------------------------


  • 2.  RE: Not able to execute the custom snowflake query with flattening function of JSON column

    Reltio Partner
    Posted 11-07-2024 12:34

    Issue is Resolved. Solution is instead of b.value:name , use b.value['name']



    ------------------------------
    Rahul Rajan
    Fresh Gravity
    ------------------------------



  • 3.  RE: Not able to execute the custom snowflake query with flattening function of JSON column

    Reltio Employee
    Posted 11-08-2024 13:36
    thank you for posting the solution!

    --

    Gino Fortunato

    Senior Solutions Engineer

    gino.fortunato@reltio.com
    +1.415.867.4195