cancel
Showing results for 
Search instead for 
Did you mean: 

Postgresql Execute doesn't show the result (SELECT query)

c_decoster
New Contributor

Hello, 

I'm trying to do a complexe PostgreSQL SELECT so i'm trying to use the Execute snap. (here is the snap settings : 

c_decoster_1-1703075128714.png

)

 

We can see in the pipeline execution statistics that he found the result i need (when i do this query in pgadmin i have the same amount of row (990)).

c_decoster_0-1703075082674.png

 

But i can't gather the data, neither in the pre-view, or in a mapper.
What can i do to get the data i need ? 

Thanks in advance, 

Decoster Corentin

 

1 REPLY 1

bojanvelevski
Valued Contributor

Hi @c_decoster,

I would say you should check the data you're trying to retrieve. Sometimes, the data is saved as an SQL composite-type value, and requires to be converted to a readable JSON so Snaplogic can consume it, with functions like array_to_json, or row_to_json, etc.

This url might be helpful: how-row_to_json-function-works-in-postgresql 

Regards,

Bojan