Skip to content

Commit

Permalink
Merge pull request #18579 from jackdelv/HPCC-30681
Browse files Browse the repository at this point in the history
HPCC-30681 Coverity scan unreachable code in Parquet plugin

Reviewed-By: Dan S. Camper <[email protected]>
Merged-by: Gavin Halliday <[email protected]>
  • Loading branch information
ghalliday authored Apr 26, 2024
2 parents d5c4ef2 + a4f941d commit 3a14040
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions plugins/parquet/parquetembed.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1964,7 +1964,6 @@ ParquetEmbedFunctionContext::ParquetEmbedFunctionContext(const IContextLogger &_
bool ParquetEmbedFunctionContext::getBooleanResult()
{
UNIMPLEMENTED_X("Parquet Scalar Return Type BOOLEAN");
return false;
}

void ParquetEmbedFunctionContext::getDataResult(size32_t &len, void *&result)
Expand All @@ -1975,19 +1974,16 @@ void ParquetEmbedFunctionContext::getDataResult(size32_t &len, void *&result)
double ParquetEmbedFunctionContext::getRealResult()
{
UNIMPLEMENTED_X("Parquet Scalar Return Type REAL");
return 0.0;
}

__int64 ParquetEmbedFunctionContext::getSignedResult()
{
UNIMPLEMENTED_X("Parquet Scalar Return Type SIGNED");
return 0;
}

unsigned __int64 ParquetEmbedFunctionContext::getUnsignedResult()
{
UNIMPLEMENTED_X("Parquet Scalar Return Type UNSIGNED");
return 0;
}

void ParquetEmbedFunctionContext::getStringResult(size32_t &chars, char *&result)
Expand Down Expand Up @@ -2039,7 +2035,6 @@ byte *ParquetEmbedFunctionContext::getRowResult(IEngineRowAllocator *_resultAllo
size32_t ParquetEmbedFunctionContext::getTransformResult(ARowBuilder &rowBuilder)
{
UNIMPLEMENTED_X("Parquet Transform Result");
return 0;
}

/**
Expand Down Expand Up @@ -2232,18 +2227,14 @@ class ParquetEmbedContext : public CInterfaceOf<IEmbedContext>
virtual IEmbedFunctionContext *createFunctionContextEx(ICodeContext *ctx, const IThorActivityContext *activityCtx, unsigned flags, const char *options) override
{
if (flags & EFimport)
{
UNSUPPORTED("IMPORT");
return nullptr;
}
else
return new ParquetEmbedFunctionContext(ctx ? ctx->queryContextLogger() : queryDummyContextLogger(), activityCtx, options, flags);
}

virtual IEmbedServiceContext *createServiceContext(const char *service, unsigned flags, const char *options) override
{
throwUnexpected();
return nullptr;
}
};

Expand Down

0 comments on commit 3a14040

Please sign in to comment.