Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Special cases that need no permutation. #1737

Merged
merged 11 commits into from
Dec 30, 2021
Original file line number Diff line number Diff line change
Expand Up @@ -1645,6 +1645,7 @@ private static void initialBucketedKeyAddition(QueryTable withView,
if (permutedKeyIndices != null) {
if (permute) {
final LongChunk<OrderedRowKeys> keyIndices = chunkOk.asRowKeyChunk();
permutedKeyIndices.setSize(keyIndices.size());
LongPermuteKernel.permuteInput(keyIndices, chunkPosition, permutedKeyIndices);
} else {
chunkOk.fillRowKeyChunk(permutedKeyIndices);
Expand All @@ -1656,7 +1657,7 @@ private static void initialBucketedKeyAddition(QueryTable withView,
if (ii == inputSlot) {
if (!permute) {
valueChunks[inputSlot] = getChunk(ac.inputColumns[ii], getContexts[ii], chunkOk, usePrev);
} else {
} else {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stray space?

assert workingChunks != null;
rcaudy marked this conversation as resolved.
Show resolved Hide resolved
valueChunks[inputSlot] =
getAndPermuteChunk(ac.inputColumns[ii], getContexts[ii], chunkOk, usePrev,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
package io.deephaven.engine.table.impl;

import io.deephaven.api.Selectable;
import io.deephaven.engine.table.Table;
import io.deephaven.engine.util.TableTools;
import io.deephaven.parquet.table.ParquetTools;

import java.text.DecimalFormat;
import java.util.Arrays;
import java.util.List;

public class TestSumByProfile {
/**
* This program will read a parquet file, select or view some columns, and then perform some operation on the resulting
* table. It mimics some of the tests we would care about with bencher (https://github.com/deephaven/bencher), but in
* an easy-to-profile way from your IDE.
*/
public class BenchmarkPlaypen {
public static void main(String[] args) {
if (args.length != 3) {
usage();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ public void testLargeSetOfFuzzerQueriesRealtime() throws IOException, Interrupte
public void testLargeSetOfFuzzerQueriesSimTime() throws IOException, InterruptedException {
final long seed1 = DateTime.now().getNanos();
for (long iteration = 0; iteration < 5; ++iteration) {
for (int segment = 8; segment < 10; segment++) {
for (int segment = 0; segment < 10; segment++) {
UpdateGraphProcessor.DEFAULT.resetForUnitTests(false);
try (final SafeCloseable ignored = LivenessScopeStack.open()) {
System.out.println("// Segment: " + segment);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -455,8 +455,9 @@ public static String replaceAll(String sourceClassJavaPath, Map<String, Long> se

System.out.println("Generating java file " + resultClassJavaPath);
PrintWriter out = new PrintWriter(resultClassJavaPath);
out.println("/*");
out.println(
"/* ---------------------------------------------------------------------------------------------------------------------");
" * ---------------------------------------------------------------------------------------------------------------------");
out.println(" * AUTO-GENERATED CLASS - DO NOT EDIT MANUALLY - for any changes edit "
+ sourceClassName + " and regenerate");
out.println(
Expand Down