Skip to content

Commit

Permalink
HPCC-30285 Review changes
Browse files Browse the repository at this point in the history
Signed-off-by: Jake Smith <[email protected]>
  • Loading branch information
jakesmith committed Sep 15, 2023
1 parent 4ec4be4 commit f3f4b53
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
3 changes: 0 additions & 3 deletions ecl/hql/hqlgram.y
Original file line number Diff line number Diff line change
Expand Up @@ -3522,9 +3522,6 @@ outputFlag
$$.setPosition($1);
}
| compressionOptions
{
$$.setExpr($1.getExpr());
}
| __GROUPED__ {
$$.setExpr(createAttribute(groupedAtom));
$$.setPosition($1);
Expand Down
1 change: 1 addition & 0 deletions ecl/hql/reservedwords.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,7 @@ static const char * eclReserved14[] = { //Attribute functions (some might actual
"timelimit",
"timeout",
"token",
"uncompressed",
"unstable",
"update",
"use",
Expand Down
4 changes: 3 additions & 1 deletion ecl/hthor/hthor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,8 @@ ClusterWriteHandler *createClusterWriteHandler(IAgentContext &agent, IHThorIndex
clusterHandler.setown(new CHThorClusterWriteHandler(lfn, "OUTPUT", agent));
}
clusterHandler->addCluster(cluster);

// This is checking that all output planes agree on compression being used or not
Owned<IPropertyTree> plane = getStoragePlane(cluster);
bool thisPlaneCompressed = plane ? plane->getPropBool("@compressLogicalFiles") : false;
if (1 == clusterIdx)
Expand Down Expand Up @@ -554,7 +556,7 @@ void CHThorDiskWriteActivity::resolve()
{
StringArray clusterNames;
clusterHandler->getClusters(clusterNames);
planeName.set(clusterNames.item(0)); // NB: only bother with 1st, if multilple createClusterWriteHandler validates if same
planeName.set(clusterNames.item(0)); // NB: only bother with 1st, if multiple createClusterWriteHandler validates if same
}
else
getDefaultStoragePlane(planeName);
Expand Down
2 changes: 2 additions & 0 deletions roxie/ccd/ccdserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11969,6 +11969,8 @@ class CRoxieServerDiskWriteActivity : public CRoxieServerInternalSinkActivity, i
break;
clusters.append(cluster);
clusterIdx++;

// This is checking that all output planes agree on compression being used or not
Owned<IPropertyTree> plane = getStoragePlane(cluster);
bool thisPlaneCompressed = plane ? plane->getPropBool("@compressLogicalFiles", outputCompressionDefault) : outputCompressionDefault;
if (1 == clusterIdx)
Expand Down
2 changes: 2 additions & 0 deletions thorlcr/activities/thdiskbase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@ void CWriteMasterBase::init()
break;
clusters.append(cluster);
idx++;

// This is checking that all output planes agree on compression being used or not
Owned<IPropertyTree> plane = getStoragePlane(cluster);
bool thisPlaneCompressed = plane ? plane->getPropBool("@compressLogicalFiles", outputCompressionDefault) : outputCompressionDefault;
if (1 == idx)
Expand Down

0 comments on commit f3f4b53

Please sign in to comment.