From 5fd241cbc91c2fb94a833341d6e3844dd9a4fe50 Mon Sep 17 00:00:00 2001 From: Dhanashree Kashid Date: Tue, 13 Dec 2016 14:49:31 -0800 Subject: [PATCH] [#135859893] Adding test cases for optimizer_large_table_broadcast Signed-off-by: Omer Arap --- .../minidump/DisableLargeTableBroadcast.mdp | 589 ++++++++++++++++++ libgpdbcost/src/CCostModelGPDB.cpp | 3 +- .../src/unittest/gpopt/minidump/CICGTest.cpp | 1 + 3 files changed, 592 insertions(+), 1 deletion(-) create mode 100644 data/dxl/minidump/DisableLargeTableBroadcast.mdp diff --git a/data/dxl/minidump/DisableLargeTableBroadcast.mdp b/data/dxl/minidump/DisableLargeTableBroadcast.mdp new file mode 100644 index 0000000000..f85f923a06 --- /dev/null +++ b/data/dxl/minidump/DisableLargeTableBroadcast.mdp @@ -0,0 +1,589 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/libgpdbcost/src/CCostModelGPDB.cpp b/libgpdbcost/src/CCostModelGPDB.cpp index 91b840e90c..d59240fe05 100644 --- a/libgpdbcost/src/CCostModelGPDB.cpp +++ b/libgpdbcost/src/CCostModelGPDB.cpp @@ -1199,7 +1199,8 @@ CCostModelGPDB::CostMotion if(dRowsOuter > ulBroadcastThreshold) { - costLocal = CCost(100000000000000); + DOUBLE ulPenalizationFactor = 100000000000000.0; + costLocal = CCost(ulPenalizationFactor); } } diff --git a/server/src/unittest/gpopt/minidump/CICGTest.cpp b/server/src/unittest/gpopt/minidump/CICGTest.cpp index 064e25a5cc..cd65411812 100644 --- a/server/src/unittest/gpopt/minidump/CICGTest.cpp +++ b/server/src/unittest/gpopt/minidump/CICGTest.cpp @@ -40,6 +40,7 @@ ULONG CICGTest::m_ulNegativeIndexApplyTestCounter = 0; // minidump files const CHAR *rgszFileNames[] = { + "../data/dxl/minidump/DisableLargeTableBroadcast.mdp", "../data/dxl/minidump/InferPredicatesForLimit.mdp", "../data/dxl/minidump/OR-WithIsNullPred.mdp", "../data/dxl/minidump/ScSubqueryWithOuterRef.mdp", -- GitLab