Hitachi Vantara Pentaho Community Forums
Results 1 to 2 of 2

Thread: How I know that txt input file is empty?

  1. #1
    Join Date
    Apr 2007
    Posts
    1

    Exclamation How I know that txt input file is empty?

    I read many txt input files. When the files has rows with data it´s ok. But, when the file is empty, my transformation don´t do anything.

    How I know that a input file is empty (no rows)?


    Thanks,

    Felipe

    Brazil, São Paulo

  2. #2
    Join Date
    May 2006
    Posts
    4,882

    Default

    Isn't that the whole point not to do anything. Your transformation will just quit as the input is empty.

    If you really want to know you could read the file in another transformation and do a group by on it e.g. In the weekly tips there a similar example using a table input to check whether rows are available for processing.

    Regards,
    Sven

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.