Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: Calculator + strings = weird results

  1. #1
    Join Date
    May 2013
    Posts
    24

    Default Calculator + strings = weird results

    Hello,
    I have a very simple transformation:
    A loads a csv file containing emails -> field "email" in the stream, type String
    B calculator, loads "email", and produces "email_u", with the uppercase modifier

    If I look at the data, I have valid email addresses in the "email" column, while the "email_u" column is populated with strings like

    [B@426E1139
    [B@48F3EE8C
    [B@45BDB38A

    WTF?

  2. #2
    Join Date
    Jun 2012
    Posts
    5,534

    Default

    Turn off lazy conversion
    So long, and thanks for all the fish.

  3. #3
    Join Date
    May 2013
    Posts
    24

    Default

    Thanks a lot marabu, that made the trick.
    There is another thing that I can't seem to grasp: I have now two streams with email and email_csv fields, both are uppercased, sorted ASC and there are many identical emails.
    If I Merge join the two streams using email and email_csv, I get only a handful (10) matched records out of thousands, even if they contain the same values and are sorted the same.
    Is there some encoding stuff at play? How do I find out?

    EDIT: it seems that SELECT email FROM table ORDER BY email ASC, when Merge sorted with a stream sorted with the "sort" step, produces incompatible sorting, resulting in faulty join.
    The "solution" (hack) has been to sort the database result with a sort step, that made everything work as expected.
    Last edited by PietroB; 05-27-2013 at 04:45 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.