Skip to content

Commit 53402a1

Browse files
authored
Merge pull request #1700 from Caltech-IPAC/FIREFLY-1652-heatmap-filtering
FIREFLY-1652: Heatmap fails to display data after filtering
2 parents fd75bfb + 876c025 commit 53402a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/firefly/java/edu/caltech/ipac/firefly/server/query/DecimationProcessor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,13 @@ void createDecimateTable(TableServerRequest treq, DbAdapter dbAdapter) throws Da
7575
deciFunc.setCols(deciInfo.getxExp(), deciInfo.getyExp());
7676

7777
int dataPoints = Math.min(deciKey.getxCount(), deciKey.getyCount());
78-
int deciEnableSize = deciInfo.getDeciEnableSize() > 0 ? deciInfo.getDeciEnableSize() : DECI_ENABLE_SIZE;
78+
int deciEnableSize = deciInfo.getDeciEnableSize() > -1 ? deciInfo.getDeciEnableSize() : DECI_ENABLE_SIZE;
7979
String tblName = getResultSetTable(treq);
8080
if (dataPoints < deciEnableSize) {
8181
String sql = """
8282
CREATE TABLE %s as (
8383
SELECT %s as "%s", %s as "%s", ROW_NUM as "rowidx", ROW_NUMBER() OVER () AS %s, ROW_NUMBER() OVER () AS %s,
84-
FROM %s
84+
FROM %s)
8585
""".formatted(tblName, deciInfo.getxExp(), deciKey.getXCol(), deciInfo.getyExp(), deciKey.getYCol(), ROW_NUM, ROW_IDX, dataTbl);
8686
dbAdapter.execUpdate(sql);
8787
} else {

0 commit comments

Comments
 (0)