Hello @wethernt ,
It seems there’s a difference between input value and displayed value in origin. Your field is originally settled as text. You are currently importing input values.
You can modify it in origin or emulate displayed text in KNIME. Aiming to populate missing zeroes, you can use ‘String Manipulation’ node for a requested fixed length (i.e. == 10)
Thank you for your help. I have been using KNIME for a couple of years but I am not more than intermediate user or advanced beginner. Thanks for help.
If my input is an Excel file are you saying I can establish column as “Text” before it goes to Snowflake?
Aside from this question, I tried to use the String Manipulation node per your suggestion (did so yesterday a few different ways as well). The output remains identical to my original image with no leading zero on spot areas.
Hello @wethernt, I’m a KINIME advanced beginner as well
If your origin is Excel; it happens that is stored on a cell by cell format basis. I’m not an expert either in Snowflake but I’ve been converting complex data from excel quite often. Excel users trend to be very creative.
A cell in excel can be numeric format but storing a numeric text item (including leading and trailing whitespaces), even performing as number; there are different level of storage in a cell (stored, displayed). A common ETL when reading from Excel to is double reading as number then as as text, and completing the resulting numeric nulls with text (selective leading zeroes are missed). It’s hard to say without seen your source data and how Snowflake import works…
Then it makes sense on better concentrate to populate leading zeroes in your KNIME String column. Other options sound like a wasted time to me.
Have you checked for trailing whitespaces in your data?
Thanks. Yes I did try this with regard to spaces in the data. I tried yesterday etc. and tried just now with your statement. The result is the same… data still looks like image in my initial post above. Strange because even if the data is missing a lead zero here and there I have no clue why things like padleft or other things being tried with string manipulation node do not seem to have impact.
Ok, my idiot self has found that when I deployed the recommendation(s), I had the box checked in the node for a new column. When I reported back here, I was looking at the existing column NOT the new column. The New Column does in fact have the leading zero.
Please accept my apologies and know that I thank you for your help. I will mark the final suggestion as solution.