Lengths of lines of file

I have the occasion to create a job that compares the lengths of some lines within certain files (normal Windows UTF-8 text log). I’m noticing an odd discrepancy.

The query is simple: maximum of lengths of lines of file “c:\somefile.log”

When I query a specific file in Debugger and WebUI Query, I get the correct answer (which for this file happens to be 114 characters wide). However using the exact same query in an analysis returns 1024. Any ideas how I can get the same result in an analysis?

Are you querying the same file content, and with the same version of the client?

I found that older versions of the client truncated a line at 1024 characters. In a later version I believe that was raised to 2048 characters, and I’m not sure what the limit on the length of a line is now.

Yes, I’m querying the same file on the same computer. The maximum line length is actually 114 characters in my test file. However the analysis using the same relevance reports as 1024. Is this a bug or am I missing something obvious?