You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@hop.apache.org by "ossDataEngineer (via GitHub)" <gi...@apache.org> on 2025/03/03 15:26:26 UTC
[D] Json Input : Not detecting proper datatypes when using "Select fields from snippet" (hop)
GitHub user ossDataEngineer created a discussion: Json Input : Not detecting proper datatypes when using "Select fields from snippet"
Hello Apache Hop Team,
Usecase:
I wish to save JSON data from API into RDBMS. The json data has fields with datatypes number and boolean. The Json Input transform's feature "Select fields from snippet" does a good job in identifying the fields but treats every field as datatype "String". Is there a way we can make this feature smart to set actual datatypes like (JSON)number=(Hop)Integer and (JSON)boolean=(Hop)Boolean.
Additional Context:
1. The JSON data from API has 500+ fields with varying datatypes. It is cumbersome to manually set data-types for each field after they have been detected by "Select fields from snippet"
Thanks,
Apache Hop Newbie
GitHub link: https://github.com/apache/hop/discussions/4973
----
This is an automatically sent email for users@hop.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@hop.apache.org
Re: [D] Json Input : Not detecting proper datatypes when using "Select fields from snippet" (hop)
Posted by "hansva (via GitHub)" <gi...@apache.org>.
GitHub user hansva added a comment to the discussion: Json Input : Not detecting proper datatypes when using "Select fields from snippet"
That's a great idea, We also do similar things for text/CSV-based files.
But do remember that we can only guess based on the data we receive; it will never be perfect.
GitHub link: https://github.com/apache/hop/discussions/4973#discussioncomment-12377334
----
This is an automatically sent email for users@hop.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@hop.apache.org
Re: [D] Json Input : Not detecting proper datatypes when using "Select fields from snippet" (hop)
Posted by "ossDataEngineer (via GitHub)" <gi...@apache.org>.
GitHub user ossDataEngineer edited a comment on the discussion: Json Input : Not detecting proper datatypes when using "Select fields from snippet"
Hello @hansva,
Thanks for quick reply.
Yeah guessing those datatypes is a huge help when dealing with data at this scale. I agree it will never be perfect, and we will need to review datatypes and make adjustments! Can this be added to Hop future features?
GitHub link: https://github.com/apache/hop/discussions/4973#discussioncomment-12377735
----
This is an automatically sent email for users@hop.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@hop.apache.org
Re: [D] Json Input : Not detecting proper datatypes when using "Select fields from snippet" (hop)
Posted by "sramazzina (via GitHub)" <gi...@apache.org>.
GitHub user sramazzina added a comment to the discussion: Json Input : Not detecting proper datatypes when using "Select fields from snippet"
@ossDataEngineer can you please file an issue as _Feature request_ so that we can keep track of this request? Thank you
GitHub link: https://github.com/apache/hop/discussions/4973#discussioncomment-12398900
----
This is an automatically sent email for users@hop.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@hop.apache.org
Re: [D] Json Input : Not detecting proper datatypes when using "Select fields from snippet" (hop)
Posted by "ossDataEngineer (via GitHub)" <gi...@apache.org>.
GitHub user ossDataEngineer added a comment to the discussion: Json Input : Not detecting proper datatypes when using "Select fields from snippet"
Hello @hansva,
Yeah guessing those datatypes is a huge help when dealing with data at this scale. I agree it will never be perfect, and we will need to review datatypes and make adjustments! Can this be added to Hop future features?
GitHub link: https://github.com/apache/hop/discussions/4973#discussioncomment-12377735
----
This is an automatically sent email for users@hop.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@hop.apache.org