queryLogicalFilename not supported on hthor

Environment

Version: community_4.0.0-4 Server: community_4.0.0-6 Compiler: 4.0.0 community_4.0.0-4 & Version: community_4.0.0-4 Server: internal_4.0.2-2 Compiler: Unknown

Description

Cannot get Subfile logical names using the following code:

***************************************************************
IMPORT STD;
sf1 := 'thor::data::test::sf';
path1 := 'thor::data::name1';
path2 := 'thor::data::name2';

nRecord := RECORD
STRING20 name;
END;
ds1 := DATASET([ {'aaa'},
{'bbb'},
{'ccc'} ],
nRecord);
ds2 := DATASET([{'ddd'}], nRecord);

SEQUENTIAL(
OUTPUT(ds1,,path1, OVERWRITE),
OUTPUT(ds2,,path2, OVERWRITE),
STD.File.CreateSuperFile(sf1),
STD.File.StartSuperFileTransaction(),
STD.File.AddSuperFile(sf1, path1),
STD.File.AddSuperFile(sf1, path2),
STD.File.FinishSuperFileTransaction());

ds3 := DATASET(sf1, {nRecord, string255 logicalFile{virtual(logicalfilename)}}, THOR);
OUTPUT(ds3);
**************************************************************

In the result ds3, value in "logicalFile" is "MORE!" instead of the real logicalfilename.

Conclusion

None

Activity

Show:

Gavin Halliday July 18, 2014 at 2:49 PM

Comment from Richard in the pull request:

This seems to have stalled somewhat. I don't think that the approach of using a separate iterator for the superfiles while still iterating the file parts of all subfiles together is going to be possible to get to work without really messy hacks. It would be better to refactor the code to use nested iterators (one to iterate over subfiles, and one to iterate over the parts in the subfile). Once that is done, adding the queryLogicalFilename support will be trivial.

Richard Chapman July 9, 2014 at 12:19 PM

I'm going to split this into two issues (hthor vs roxie)

Richard Chapman October 1, 2013 at 3:43 PM

The code may be simple enough that it gets executed on hthor regardless. I think there's an option to force such queries to thor ( may remember what it is called).

(Note - it SHOULD work on hthor too - this is a bug).

Fan Fei October 1, 2013 at 3:29 PM

It happens on DEV thor cluster. On Virtual machine, both thor and hthor.

Richard Chapman October 1, 2013 at 3:25 PM

I rather suspect the virtual(logicalfilename) feature is only supported on thor (and that this was executed on hthor)?

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Priority

Fix versions

Labels

Pull Request URL

Affects versions

Due date

Created October 1, 2013 at 3:06 PM
Updated September 29, 2014 at 9:43 AM
Resolved September 29, 2014 at 9:43 AM