Skip to main content
Question

FeatureWriter not recognizing casting on features, wants to write everything as text.

  • May 27, 2021
  • 1 reply
  • 3 views

Hey guys,

 

I've brought some data sources casted through a query (SQLexecutor transformer with a Creator) from a postgresql DB.

 

Applied some transformations, such as AttributeManager, and generated some IDs by adding columns with counters.

 

And the FeatureWriter wants to write everything casted as "Text" on Automatic Attribute Definition. Before I switch to "Manual" and cast everything (again), I just wanted to know if there's a way to have the FeatureWriter recognize the casting brought over from the query.

 

Thanks and all the best!

1 reply

Forum|alt.badge.img+2

@asplundh_ds​ at the moment there is no way to preserve the CAST attribute data types. We are working on exposing the schema and types. But it is not possible in FME 2021 or earlier


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings