Ask Your Question
1

How can I rename fields using Jython?

asked 2019-09-13 07:33:51 -0600

anonymous user

Anonymous

updated 2019-09-13 14:45:06 -0600

jeff gravatar image

How to achieve similar functionality in Jython Evaluator Stage which was done in

https://ask.streamsets.com/question/7...

edit retag flag offensive close merge delete

Comments

You should be able to just translate that Groovy code to Jython. Where are you getting stuck? Can you post your code?

metadaddy gravatar imagemetadaddy ( 2019-09-13 11:52:51 -0600 )edit
1

Also, what rename logic are you trying to achieve? It may not even be necessary to use scripting for it.

jeff gravatar imagejeff ( 2019-09-13 14:46:52 -0600 )edit

@meta notsure how to achieve similarly in jython

Vss@2019 gravatar imageVss@2019 ( 2019-09-13 20:19:14 -0600 )edit

@jeff agreed.. but if i want to achieve multiple replace with in single stage it might not be possible due to that reason i am looking for preferrably jython

Vss@2019 gravatar imageVss@2019 ( 2019-09-13 20:22:38 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2019-09-14 14:06:57 -0600

iamontheinet gravatar image

Hi!

Thoroughly refer to following docs before going the scripting route. And note that even in the Q&A link you referred to (for Groovy script) there's a note from @jeff suggesting that the same thing can now be accomplished using Field Mapper.

Cheers, Dash

edit flag offensive delete link more

Comments

Thanks iam

Vss@2019 gravatar imageVss@2019 ( 2019-09-25 03:14:14 -0600 )edit
Login/Signup to Answer

Question Tools

2 followers

Stats

Asked: 2019-09-13 07:33:51 -0600

Seen: 106 times

Last updated: Sep 14