Calculations - Constant Assign

More
2 years 6 months ago - 2 years 6 months ago #23228 by prashant
Hi,
I am trying to introduce a new column in csv containing value "By You"

I (using chatgpt) create a calculation transformation , use pascal 
Code:
begin Result:='By You'; end;
When I run this , I get the right result in Calculation Window

In Transformation window , when I try to run this using Process Data , no value is assigned

The final output also has blank values 
 
 
Last edit: 2 years 6 months ago by prashant.

Please Log in or Create an account to join the conversation.

More
2 years 6 months ago #23233 by admin

Please Log in or Create an account to join the conversation.

More
2 years 6 months ago #23234 by admin
FYI: For calculation to work you have to link it's inputs to something

Mike
ETL Architect

Please Log in or Create an account to join the conversation.

More
2 years 6 months ago #23236 by prashant
Hi Mike,

Literal works

Thanks for leaving the tip regarding Calculations input .

 

Question we can do regular expressions also here?

Please Log in or Create an account to join the conversation.

More
2 years 6 months ago #23238 by admin
We always tell our customers to await using calculations because the are slow.

In your case lookup transformation is much better option.

www.etl-tools.com/wiki/advanced-etl-proc...ions/lookups/lookup/

Regarding regular expression yes it is possible to use it


Mike
ETL Architect

Please Log in or Create an account to join the conversation.

More
2 years 6 months ago - 2 years 6 months ago #23239 by prashant

We always tell our customers to await using calculations because the are slow.

In your case lookup transformation is much better option.

www.etl-tools.com/wiki/advanced-etl-proc...ions/lookups/lookup/
 
GOT IT. I just tried a CSV lookup , was quite awesome. Thanks for suggesting it

I assume there will be no speed difference in looking up a CSV file or a xlsx file ?
Last edit: 2 years 6 months ago by prashant.

Please Log in or Create an account to join the conversation.

Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Read more
Marketing
Set of techniques which have for object the commercial strategy and in particular the market study.
Google
Accept
Decline
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Google Analytics
Accept
Decline
Functional
Tools used to give you more features when navigating on the website, this can include social sharing.
Advertisement
If you accept, the ads on the page will be adapted to your preferences.
Google Ad
Accept
Decline
Save