how do I get the result from a json object with json_extract in a mysql select?
My example code:
select a.id, a.name, JSON_EXTRACT(aa.details, '\"$.price\"') AS JsonAttr, from article as a left join article_attributes AS aa ON a.id = aa.articleId
@torbre , do you want to extract the json fields from mysql table? then use tExtractJson after the tDBInput component.
Yes, I want to extract the JSON from the db cloumn. Actually, I wanted to avoid another component, since you can extract the data in select using JSON_EXTRACT. My question would still be, why is it not possible to extract the data like this via a select in tMysqlInput?
My Solution: I now extract the data using Java code.
Thank you for your prompt reply
Talend named a Leader.
Kickstart your first data integration and ETL projects.
Learn how to do cool things with Context Variables
Find out how to migrate from one database to another using the Dynamic schema
Pick up some tips and tricks with Context Variables