Hitachi Vantara Pentaho Community Forums
Results 1 to 15 of 15

Thread: Check if file is not empty

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2016

    Default Check if file is not empty

    How to check if file is not empty? According the docs step "Detect empty stream" should do the job. But how to use it?

    "This step will output one row if input stream is empty (ie when input stream does not contain any row). The output row will have the same fields as the input row, but all field values will be empty (null)."

    It will produce row with empty fields but when input is not empty... it will produce empty result. It does not work.

    In the following example when infput file is empty the result with be just header (as suppose to work).
    When input file is not empty will will produce nothing. It should simply copy the input.

    Is there any simple way to check if file is empty?
    Attached Files Attached Files

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.