id
stringlengths
7
14
test_class
dict
test_case
dict
focal_class
dict
focal_method
dict
repository
dict
97518356_397
{ "fields": [], "file": "sabot/kernel/src/test/java/com/dremio/exec/store/dfs/easy/TestEasyScanOperatorCreator.java", "identifier": "TestEasyScanOperatorCreator", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void falseWhenChildrenAreSelected() {\n BatchSchema schema = mock(BatchSchema.class);\n when(schema.iterator())\n .thenReturn(Lists.newArrayList(\n new Field(\"a1\", new FieldType(true, new ArrowType.Struct(), null),\n Lists.newArrayList(Field.nullable(\"a2\...
{ "fields": [ { "declarator": "logger = org.slf4j.LoggerFactory.getLogger(com.dremio.exec.store.dfs.easy.EasyScanOperatorCreator.class)", "modifier": "private static final", "original_string": "private static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(com.dremio.exec.store...
{ "body": "static boolean selectsAllColumns(final BatchSchema datasetSchema, final List<SchemaPath> projectedColumns) {\n final Set<String> columnsInTable = FluentIterable.from(datasetSchema)\n .transform(\n new Function<Field, String>() {\n @Override\n public String app...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_682
{ "fields": [ { "declarator": "REMOTE_ENDPOINT_1 = newNodeEndpoint(\"10.0.0.2\", 1234)", "modifier": "private static final", "original_string": "private static final NodeEndpoint REMOTE_ENDPOINT_1 = newNodeEndpoint(\"10.0.0.2\", 1234);", "type": "NodeEndpoint", "var_name": "REMOTE_EN...
{ "body": "@Test\n public void testMkdirsRemoteFile() throws IOException {\n doReturn(true).when(mockLocalFS).mkdirs(\n new Path(\"/foo/bar/dir2\"),\n FsPermission.getFileDefault());\n doReturn(true).when(mockRemoteFS).mkdirs(\n new Path(\"/foo/bar/dir2\"),\n FsPermission.getFileDef...
{ "fields": [ { "declarator": "logger = org.slf4j.LoggerFactory.getLogger(PseudoDistributedFileSystem.class)", "modifier": "private static final", "original_string": "private static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(PseudoDistributedFileSystem.class);", "typ...
{ "body": "@Override\n public boolean mkdirs(Path f, FsPermission permission) throws IOException {\n Path absolutePath = toAbsolutePath(f);\n checkPath(absolutePath);\n\n // Handle root\n if (absolutePath.isRoot()) {\n // Path always exists\n return true;\n }\n\n if (isRemoteFile(absolute...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_378
{ "fields": [ { "declarator": "schemaConverter", "modifier": "private", "original_string": "private SchemaConverter schemaConverter;", "type": "SchemaConverter", "var_name": "schemaConverter" }, { "declarator": "expectedEx = ExpectedException.none()", "modifier": ...
{ "body": "@Test\n public void missingArrowTypes() {\n org.apache.iceberg.Schema icebergSchema = new org.apache.iceberg.Schema(\n NestedField.optional(1, \"uuid\", Types.UUIDType.get())\n );\n\n BatchSchema schema = BatchSchema.newBuilder()\n .addField(new CompleteType(new FixedSizeBinary(16)).toF...
{ "fields": [], "file": "sabot/kernel/src/main/java/com/dremio/exec/store/iceberg/SchemaConverter.java", "identifier": "SchemaConverter", "interfaces": "", "methods": [ { "class_method_signature": "SchemaConverter.SchemaConverter()", "constructor": true, "full_signature": "public Schema...
{ "body": "public BatchSchema fromIceberg(org.apache.iceberg.Schema icebergSchema) {\n return new BatchSchema(icebergSchema\n .columns()\n .stream()\n .map(SchemaConverter::fromIcebergColumn)\n .filter(Objects::nonNull)\n .collect(Collectors.toList()));\n }", "class_method_signature": "...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_728
{ "fields": [ { "declarator": "temporaryFolder = new TemporaryFolder()", "modifier": "@Rule\n public final", "original_string": "@Rule\n public final TemporaryFolder temporaryFolder = new TemporaryFolder();", "type": "TemporaryFolder", "var_name": "temporaryFolder" } ], "fi...
{ "body": "@Test\n public void testToPathStream() throws MalformedURLException, IOException {\n try (\n URLClassLoader clA = new URLClassLoader(\n new URL[] { new URL(\"file:/foo/bar.jar\"), new URL(\"file:/foo/baz.jar\") }, null);\n URLClassLoader clB = new URLClassLoader(\n n...
{ "fields": [ { "declarator": "X_DREMIO_LIBRARY_PATH_MANIFEST_ATTRIBUTE = \"X-Dremio-Library-Path\"", "modifier": "public static final", "original_string": "public static final String X_DREMIO_LIBRARY_PATH_MANIFEST_ATTRIBUTE = \"X-Dremio-Library-Path\";", "type": "String", "var_name"...
{ "body": "@VisibleForTesting\n static Stream<Path> toPathStream(ClassLoader classLoader) {\n if (classLoader == null) {\n return Stream.of();\n }\n\n if (classLoader != ClassLoader.getSystemClassLoader()) {\n // First add jar/classes loaded by the parent classloader in order to preserve\n //...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_401
{ "fields": [ { "declarator": "logger = org.slf4j.LoggerFactory.getLogger(TestTimedRunnable.class)", "modifier": "private static final", "original_string": "private static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(TestTimedRunnable.class);", "type": "org.slf4j.Logge...
{ "body": "@Test\n public void withoutAnyTasksTriggeringTimeout() throws Exception {\n List<TimedRunnable<Void>> tasks = Lists.newArrayList();\n\n for(int i=0; i<100; i++){\n tasks.add(new TestTask(2000));\n }\n\n TimedRunnable.run(\"Execution without triggering timeout\", logger, tasks, 16);\n }",...
{ "fields": [ { "declarator": "TIMEOUT_PER_RUNNABLE_IN_MSECS = 15000", "modifier": "private static", "original_string": "private static long TIMEOUT_PER_RUNNABLE_IN_MSECS = 15000;", "type": "long", "var_name": "TIMEOUT_PER_RUNNABLE_IN_MSECS" }, { "declarator": "e", ...
{ "body": "@Override\n public final void run() {\n long start = System.nanoTime();\n threadStart=start;\n try{\n value = runInner();\n }catch(Exception e){\n this.e = e;\n }finally{\n timeNanos = System.nanoTime() - start;\n }\n }", "class_method_signature": "TimedRunnable.run()",...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_26
{ "fields": [ { "declarator": "datasetPath = new DatasetPath(\"myspace.parentDS\")", "modifier": "private final", "original_string": "private final DatasetPath datasetPath = new DatasetPath(\"myspace.parentDS\");", "type": "DatasetPath", "var_name": "datasetPath" }, { "...
{ "body": "@Test\n public void testMutatorApplyNoDropNonPreview() {\n boolean preview = false;\n TransformResult result = mutator(preview).apply(\"foo\", \"foo2\", newValue, false);\n assertEquals(newHashSet(\"foo2\"), result.getAddedColumns());\n assertEquals(newHashSet(), result.getModifiedColumns());\...
{ "fields": [ { "declarator": "logger = org.slf4j.LoggerFactory.getLogger(DatasetStateMutator.class)", "modifier": "private static final", "original_string": "private static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(DatasetStateMutator.class);", "type": "org.slf4j.L...
{ "body": "public TransformResult apply(String oldCol, String newCol, ExpressionBase newExp, boolean dropSourceColumn) {\n return apply(oldCol, newCol, newExp.wrap(), dropSourceColumn);\n }", "class_method_signature": "DatasetStateMutator.apply(String oldCol, String newCol, ExpressionBase newExp, boolean dropSo...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_544
{ "fields": [ { "declarator": "NON_NULL_VALUE = \"Non-null value\"", "modifier": "public static final", "original_string": "public static final Object NON_NULL_VALUE = \"Non-null value\";", "type": "Object", "var_name": "NON_NULL_VALUE" }, { "declarator": "genericAccess...
{ "body": "@Test\n public void testGetObject() throws Exception {\n assertEquals(NON_NULL_VALUE, genericAccessor.getObject(0));\n assertNull(genericAccessor.getObject(1));\n }", "class_method_signature": "GenericAccessorTest.testGetObject()", "constructor": false, "full_signature": "@Test public void te...
{ "fields": [ { "declarator": "v", "modifier": "private", "original_string": "private ValueVector v;", "type": "ValueVector", "var_name": "v" } ], "file": "client/jdbc/src/main/java/com/dremio/exec/vector/accessor/GenericAccessor.java", "identifier": "GenericAccessor", "i...
{ "body": "@Override\n public Object getObject(int index) throws InvalidAccessException {\n return v.getObject(index);\n }", "class_method_signature": "GenericAccessor.getObject(int index)", "constructor": false, "full_signature": "@Override public Object getObject(int index)", "identifier": "getObject",...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_114
{ "fields": [ { "declarator": "PATH = \"/cluster/stats\"", "modifier": "private static final", "original_string": "private static final String PATH = \"/cluster/stats\";", "type": "String", "var_name": "PATH" } ], "file": "dac/backend/src/test/java/com/dremio/dac/api/TestClus...
{ "body": "@Test\n public void testSamplesS3() throws Exception{\n List<SourceConfig> sources = new ArrayList();\n\n SourceConfig configS3Samples = new SourceConfig();\n configS3Samples.setMetadataPolicy(DEFAULT_METADATA_POLICY_WITH_AUTO_PROMOTE);\n configS3Samples.setName(\"Samples\");\n configS3Sam...
{ "fields": [ { "declarator": "logger = LoggerFactory.getLogger(ClusterStatsResource.class)", "modifier": "private static final", "original_string": "private static final Logger logger = LoggerFactory.getLogger(ClusterStatsResource.class);", "type": "Logger", "var_name": "logger" ...
{ "body": "@VisibleForTesting\n public static Stats getSources(List<SourceConfig> allSources, SabotContext context){\n\n final Stats resource = new Stats();\n\n for (SourceConfig sourceConfig : allSources) {\n int pdsCount = -1;\n\n String type = sourceConfig.getType();\n\n if(type == null && s...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_381
{ "fields": [ { "declarator": "schemaConverter", "modifier": "private", "original_string": "private SchemaConverter schemaConverter;", "type": "SchemaConverter", "var_name": "schemaConverter" }, { "declarator": "expectedEx = ExpectedException.none()", "modifier": ...
{ "body": "@Test\n public void unsupportedArrowTypes() {\n BatchSchema inputSchema = BatchSchema.newBuilder()\n .addField(CompleteType.union(\n CompleteType.INT.toField(\"int_field\"),\n CompleteType.BIGINT.toField(\"bigint_field\")\n ).toField(\"union_field\"))\n .build();\n\n exp...
{ "fields": [], "file": "sabot/kernel/src/main/java/com/dremio/exec/store/iceberg/SchemaConverter.java", "identifier": "SchemaConverter", "interfaces": "", "methods": [ { "class_method_signature": "SchemaConverter.SchemaConverter()", "constructor": true, "full_signature": "public Schema...
{ "body": "public org.apache.iceberg.Schema toIceberg(BatchSchema schema) {\n org.apache.iceberg.Schema icebergSchema = new org.apache.iceberg.Schema(schema\n .getFields()\n .stream()\n .filter(x -> !x.getName().equalsIgnoreCase(WriterPrel.PARTITION_COMPARATOR_FIELD))\n .map(x -> toIcebergColum...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_694
{ "fields": [ { "declarator": "REMOTE_ENDPOINT_1 = newNodeEndpoint(\"10.0.0.2\", 1234)", "modifier": "private static final", "original_string": "private static final NodeEndpoint REMOTE_ENDPOINT_1 = newNodeEndpoint(\"10.0.0.2\", 1234);", "type": "NodeEndpoint", "var_name": "REMOTE_EN...
{ "body": "@Test\n public void testCanonicalizeLocalFile() throws IOException {\n Path path = new Path(\"/foo/bar/file\");\n\n Path resolvedPath = fs.canonicalizePath(path);\n assertEquals(new Path(\"/foo/bar/10.0.0.1@file\"), resolvedPath);\n }", "class_method_signature": "TestPseudoDistributedFileSyste...
{ "fields": [ { "declarator": "logger = org.slf4j.LoggerFactory.getLogger(PseudoDistributedFileSystem.class)", "modifier": "private static final", "original_string": "private static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(PseudoDistributedFileSystem.class);", "typ...
{ "body": "@Override\n public Path canonicalizePath(Path p) throws IOException {\n Path absolutePath = toAbsolutePath(p);\n checkPath(absolutePath);\n\n if (isRemoteFile(absolutePath)) {\n return absolutePath;\n }\n\n if (isDirectory(absolutePath)) {\n return absolutePath;\n }\n\n if (...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_30
{ "fields": [ { "declarator": "datasetPath = new DatasetPath(\"myspace.parentDS\")", "modifier": "private final", "original_string": "private final DatasetPath datasetPath = new DatasetPath(\"myspace.parentDS\");", "type": "DatasetPath", "var_name": "datasetPath" }, { "...
{ "body": "@Test\n public void testMutatorApplyReplacePreview() {\n boolean preview = true;\n TransformResult result1 = mutator(preview).apply(\"foo\", \"foo\", newValue, true);\n assertEquals(newHashSet(\"foo (new)\"), result1.getAddedColumns());\n assertEquals(newHashSet(), result1.getModifiedColumns()...
{ "fields": [ { "declarator": "logger = org.slf4j.LoggerFactory.getLogger(DatasetStateMutator.class)", "modifier": "private static final", "original_string": "private static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(DatasetStateMutator.class);", "type": "org.slf4j.L...
{ "body": "public TransformResult apply(String oldCol, String newCol, ExpressionBase newExp, boolean dropSourceColumn) {\n return apply(oldCol, newCol, newExp.wrap(), dropSourceColumn);\n }", "class_method_signature": "DatasetStateMutator.apply(String oldCol, String newCol, ExpressionBase newExp, boolean dropSo...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_417
{ "fields": [], "file": "sabot/kernel/src/test/java/com/dremio/exec/server/options/TestOptionValueProtoUtils.java", "identifier": "TestOptionValueProtoUtils", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testFloatOptionFromProto() {\n final OptionValueProto optionProto = OptionValueProto.newBuilder()\n .setName(\"test.option\")\n .setFloatVal(1234.1234)\n .build();\n final OptionValue option = OptionValueProtoUtils.toOptionValue(optionProto);\n assertTrue(verify...
{ "fields": [], "file": "sabot/kernel/src/main/java/com/dremio/exec/server/options/OptionValueProtoUtils.java", "identifier": "OptionValueProtoUtils", "interfaces": "", "methods": [ { "class_method_signature": "OptionValueProtoUtils.OptionValueProtoUtils()", "constructor": true, "full_si...
{ "body": "public static OptionValue toOptionValue(OptionValueProto value) {\n switch (value.getOptionValCase()) {\n case NUM_VAL:\n return OptionValue.createLong(\n OptionValue.OptionType.SYSTEM,\n value.getName(),\n value.getNumVal()\n );\n case STRING_VAL:\n r...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_102
{ "fields": [ { "declarator": "REFLECTIONS_PATH = \"/reflection/\"", "modifier": "private static final", "original_string": "private static final String REFLECTIONS_PATH = \"/reflection/\";", "type": "String", "var_name": "REFLECTIONS_PATH" }, { "declarator": "CATALOG_P...
{ "body": "@Test\n public void testDeleteReflection() {\n Reflection newReflection = createReflection();\n Reflection response = expectSuccess(getBuilder(getPublicAPI(3).path(REFLECTIONS_PATH)).buildPost(Entity.entity(newReflection, JSON)), Reflection.class);\n\n expectSuccess(getBuilder(getPublicAPI(3).pat...
{ "fields": [ { "declarator": "reflectionServiceHelper", "modifier": "private final", "original_string": "private final ReflectionServiceHelper reflectionServiceHelper;", "type": "ReflectionServiceHelper", "var_name": "reflectionServiceHelper" }, { "declarator": "catalo...
{ "body": "@DELETE\n @Path(\"/{id}\")\n public Response deleteReflection(@PathParam(\"id\") String id) {\n reflectionServiceHelper.removeReflection(id);\n return Response.ok().build();\n }", "class_method_signature": "ReflectionResource.deleteReflection(@PathParam(\"id\") String id)", "constructor": fals...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_339
{ "fields": [], "file": "sabot/kernel/src/test/java/com/dremio/exec/planner/sql/handlers/commands/TestMetadataProviderConditions.java", "identifier": "TestMetadataProviderConditions", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testCreateFilterAlwaysTrue() {\n assertFalse(MetadataProviderConditions.createConjunctiveQuery(null, null).isPresent());\n assertFalse(MetadataProviderConditions.createConjunctiveQuery(null, newLikeFilter(\"%\", null)).isPresent());\n assertFalse(MetadataProviderConditions.cre...
{ "fields": [ { "declarator": "ALWAYS_TRUE = x -> true", "modifier": "static final", "original_string": "static final Predicate<String> ALWAYS_TRUE = x -> true;", "type": "Predicate<String>", "var_name": "ALWAYS_TRUE" }, { "declarator": "SQL_LIKE_ANY_STRING_PATTERN = \"...
{ "body": "public static Optional<SearchQuery> createConjunctiveQuery(\n LikeFilter schemaNameFilter,\n LikeFilter tableNameFilter\n ) {\n final Optional<SearchQuery> schemaNameQuery =\n createLikeQuery(DatasetIndexKeys.UNQUOTED_SCHEMA.getIndexFieldName(), schemaNameFilter);\n final Optional<SearchQ...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_293
{ "fields": [ { "declarator": "testAllocator", "modifier": "private", "original_string": "private BufferAllocator testAllocator;", "type": "BufferAllocator", "var_name": "testAllocator" }, { "declarator": "TOTAL_STRINGS = 1024", "modifier": "static final", "...
{ "body": "@Test\n public void TestInterleavedSmallToMid()\n {\n //insert the values from l1\n LinkedList<String> l1 = GetRandomStringList(TOTAL_STRINGS, smallAvgSize);\n //update values from l2\n LinkedList<String> l2 = GetRandomStringList(TOTAL_STRINGS, midAvgSize);\n\n final double threshold = 1.0...
{ "fields": [ { "declarator": "garbageSizeInBytes", "modifier": "private", "original_string": "private int garbageSizeInBytes;", "type": "int", "var_name": "garbageSizeInBytes" }, { "declarator": "compactionThreshold", "modifier": "private", "original_string...
{ "body": "@Override\n public void close() {\n this.clear();\n }", "class_method_signature": "MutableVarcharVector.close()", "constructor": false, "full_signature": "@Override public void close()", "identifier": "close", "invocations": [ "clear" ], "modifiers": "@Override public", "parameters...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_440
{ "fields": [ { "declarator": "MAX_COLUMNS = 800", "modifier": "private static final", "original_string": "private static final int MAX_COLUMNS = 800;", "type": "int", "var_name": "MAX_COLUMNS" }, { "declarator": "MAX_NESTED_LEVELS = 16", "modifier": "private stat...
{ "body": "@Test\n public void exceedMaxColumnLimit() throws Exception {\n NamespaceService ns = mock(NamespaceService.class);\n when(ns.getDataset(any()))\n .thenReturn(null);\n\n ExtendedStoragePlugin sp = mock(ExtendedStoragePlugin.class);\n\n DatasetHandle handle = () -> new EntityPath(Lists.n...
{ "fields": [ { "declarator": "MAXIMUM_CACHE_SIZE = 10_000L", "modifier": "private static final", "original_string": "private static final long MAXIMUM_CACHE_SIZE = 10_000L;", "type": "long", "var_name": "MAXIMUM_CACHE_SIZE" }, { "declarator": "logger = org.slf4j.Logger...
{ "body": "UpdateStatus refreshDataset(NamespaceKey datasetKey, DatasetRetrievalOptions options)\n throws ConnectorException, NamespaceException {\n options.withFallback(bridge.getDefaultRetrievalOptions());\n final NamespaceService namespace = bridge.getNamespaceService();\n final DatasetSaver saver = ...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_67
{ "fields": [ { "declarator": "nameDSRef = new FromTable(\"myspace.parentDS\").wrap()", "modifier": "private", "original_string": "private From nameDSRef = new FromTable(\"myspace.parentDS\").wrap();", "type": "From", "var_name": "nameDSRef" }, { "declarator": "sqlDSRef...
{ "body": "@Test\n public void testReplaceInvalidReplacedValues() {\n boolean exThrown = false;\n try {\n VirtualDatasetState state = new VirtualDatasetState()\n .setFrom(nameDSRef);\n Expression exp0 = new ExpColumnReference(\"bar\").wrap();\n\n FieldTransformationBase transf1 =\n ...
{ "fields": [ { "declarator": "logger = LoggerFactory.getLogger(SQLGenerator.class)", "modifier": "private static final", "original_string": "private static final Logger logger = LoggerFactory.getLogger(SQLGenerator.class);", "type": "Logger", "var_name": "logger" }, { ...
{ "body": "public static String generateSQL(VirtualDatasetState vss){\n return new SQLGenerator().innerGenerateSQL(vss);\n }", "class_method_signature": "SQLGenerator.generateSQL(VirtualDatasetState vss)", "constructor": false, "full_signature": "public static String generateSQL(VirtualDatasetState vss)", ...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_505
{ "fields": [], "file": "common/src/test/java/com/dremio/common/utils/protos/TestBlackListOutput.java", "identifier": "TestBlackListOutput", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void writeByteArray() throws IOException {\n Output delegate = Mockito.mock(Output.class);\n BlackListOutput subject =\n new BlackListOutput(\n delegate,\n Collections.emptyMap(),\n new int[]{2}\n );\n\n subject.writeByteArray(1, new...
{ "fields": [ { "declarator": "EmptyArray = new int[0]", "modifier": "private static final", "original_string": "private static final int[] EmptyArray = new int[0];", "type": "int[]", "var_name": "EmptyArray" }, { "declarator": "delegate", "modifier": "private fin...
{ "body": "@Override\n public void writeByteArray(int fieldNumber, byte[] value, boolean repeated) throws IOException {\n if(isBlackListed(fieldNumber)){\n return;\n }\n delegate.writeByteArray(fieldNumber, value, repeated);\n }", "class_method_signature": "BlackListOutput.writeByteArray(int fieldNu...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_88
{ "fields": [ { "declarator": "table = \"\\\"cp\\\".\\\"tpch/supplier.parquet\\\"\"", "modifier": "private static", "original_string": "private static String table = \"\\\"cp\\\".\\\"tpch/supplier.parquet\\\"\";", "type": "String", "var_name": "table" }, { "declarator":...
{ "body": "@Test\n public void testFunctionUpper() {\n VirtualDatasetState ds =\n extract(getQueryFromSQL(\"select upper(a) from cp.\\\"json/convert_case.json\\\"\"));\n assertEquals(\n new VirtualDatasetState()\n .setFrom(new FromTable(\"\\\"cp\\\".\\\"json/convert_case.json\\\"\").se...
{ "fields": [], "file": "dac/backend/src/main/java/com/dremio/dac/explore/QuerySemantics.java", "identifier": "QuerySemantics", "interfaces": "", "methods": [ { "class_method_signature": "QuerySemantics.QuerySemantics()", "constructor": true, "full_signature": "private QuerySemantics()"...
{ "body": "public static VirtualDatasetState extract(QueryMetadata metadata) {\n final com.dremio.service.jobs.metadata.proto.VirtualDatasetState pState = metadata.getState();\n final VirtualDatasetState state = new VirtualDatasetState();\n if (pState.hasFrom()) {\n state.setFrom(fromBuf(pState.getFrom(...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_155
{ "fields": [], "file": "services/jobtelemetry/server/src/test/java/com/dremio/service/jobtelemetry/server/TestProfileMerger.java", "identifier": "TestProfileMerger", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testMergeWithOnlyPlanningAndTailProfile() {\n final UserBitShared.QueryProfile planningProfile =\n UserBitShared.QueryProfile.newBuilder()\n .setPlan(\"PLAN_VALUE\")\n .setQuery(\"Select * from plan\")\n .setState(UserBitShared.QueryResult.QueryState.ENQUEU...
{ "fields": [ { "declarator": "planningProfile", "modifier": "private final", "original_string": "private final QueryProfile planningProfile;", "type": "QueryProfile", "var_name": "planningProfile" }, { "declarator": "tailProfile", "modifier": "private final", ...
{ "body": "static QueryProfile merge(QueryProfile planningProfile, QueryProfile tailProfile,\n Stream<ExecutorQueryProfile> executorProfiles) {\n\n return new ProfileMerger(planningProfile, tailProfile, executorProfiles).merge();\n }", "class_method_signature": "ProfileMerger.merge(QueryProfile planningProfi...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_441
{ "fields": [ { "declarator": "kvStoreProvider", "modifier": "private", "original_string": "private LegacyKVStoreProvider kvStoreProvider;", "type": "LegacyKVStoreProvider", "var_name": "kvStoreProvider" }, { "declarator": "namespaceService", "modifier": "private"...
{ "body": "@Test\n public void emptyIterator() {\n final NamespaceListing listing = new NamespaceListing(null, null, null, null);\n\n try {\n listing.newIterator(Collections.emptyIterator()).next();\n fail();\n } catch (NoSuchElementException expected) {\n }\n\n assertFalse(listing.newIterat...
{ "fields": [ { "declarator": "namespaceService", "modifier": "private final", "original_string": "private final NamespaceService namespaceService;", "type": "NamespaceService", "var_name": "namespaceService" }, { "declarator": "sourceKey", "modifier": "private fi...
{ "body": "@VisibleForTesting\n Iterator<DatasetHandle> newIterator(Iterator<NamespaceKey> keyIterator) {\n return new TransformingIterator(keyIterator);\n }", "class_method_signature": "NamespaceListing.newIterator(Iterator<NamespaceKey> keyIterator)", "constructor": false, "full_signature": "@VisibleForT...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_66
{ "fields": [ { "declarator": "datasetPath = new DatasetPath(\"myspace.parentDS\")", "modifier": "private final", "original_string": "private final DatasetPath datasetPath = new DatasetPath(\"myspace.parentDS\");", "type": "DatasetPath", "var_name": "datasetPath" }, { "...
{ "body": "@Test\n public void testTransformWithExtract() throws Exception {\n setSpace();\n DatasetPath myDatasetPath = new DatasetPath(\"spacefoo.folderbar.folderbaz.datasetbuzz\");\n createDatasetFromParentAndSave(myDatasetPath, \"cp.\\\"tpch/supplier.parquet\\\"\");\n\n DatasetUI dataset = getDataset...
{ "fields": [ { "declarator": "logger = org.slf4j.LoggerFactory.getLogger(Transformer.class)", "modifier": "private static final", "original_string": "private static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(Transformer.class);", "type": "org.slf4j.Logger", "v...
{ "body": "public VirtualDatasetUI transformWithExtract(DatasetVersion newVersion, DatasetPath path, VirtualDatasetUI baseDataset, TransformBase transform) throws DatasetNotFoundException, NamespaceException{\n final ExtractTransformActor actor = new ExtractTransformActor(baseDataset.getState(), false, username(),...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_504
{ "fields": [], "file": "common/src/test/java/com/dremio/common/utils/protos/TestBlackListOutput.java", "identifier": "TestBlackListOutput", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void writeByteBuffer() throws IOException {\n Output delegate = Mockito.mock(Output.class);\n BlackListOutput subject =\n new BlackListOutput(\n delegate,\n Collections.emptyMap(),\n new int[]{2}\n );\n\n subject.writeBytes(1, ByteBuffer.wrap(new byte...
{ "fields": [ { "declarator": "EmptyArray = new int[0]", "modifier": "private static final", "original_string": "private static final int[] EmptyArray = new int[0];", "type": "int[]", "var_name": "EmptyArray" }, { "declarator": "delegate", "modifier": "private fin...
{ "body": "@Override\n public void writeBytes(int fieldNumber, ByteString value, boolean repeated) throws IOException {\n if(isBlackListed(fieldNumber)){\n return;\n }\n delegate.writeBytes(fieldNumber, value, repeated);\n }", "class_method_signature": "BlackListOutput.writeBytes(int fieldNumber, By...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_89
{ "fields": [ { "declarator": "table = \"\\\"cp\\\".\\\"tpch/supplier.parquet\\\"\"", "modifier": "private static", "original_string": "private static String table = \"\\\"cp\\\".\\\"tpch/supplier.parquet\\\"\";", "type": "String", "var_name": "table" }, { "declarator":...
{ "body": "@Test\n public void testOrder() {\n VirtualDatasetState ds =\n extract(getQueryFromSQL(\"select a from cp.\\\"json/nested.json\\\" order by a\"));\n assertEquals(\n new VirtualDatasetState()\n .setFrom(new FromTable(\"\\\"cp\\\".\\\"json/nested.json\\\"\").setAlias(\"json/ne...
{ "fields": [], "file": "dac/backend/src/main/java/com/dremio/dac/explore/QuerySemantics.java", "identifier": "QuerySemantics", "interfaces": "", "methods": [ { "class_method_signature": "QuerySemantics.QuerySemantics()", "constructor": true, "full_signature": "private QuerySemantics()"...
{ "body": "public static VirtualDatasetState extract(QueryMetadata metadata) {\n final com.dremio.service.jobs.metadata.proto.VirtualDatasetState pState = metadata.getState();\n final VirtualDatasetState state = new VirtualDatasetState();\n if (pState.hasFrom()) {\n state.setFrom(fromBuf(pState.getFrom(...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_154
{ "fields": [], "file": "services/jobtelemetry/server/src/test/java/com/dremio/service/jobtelemetry/server/TestProfileMerger.java", "identifier": "TestProfileMerger", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testMergeWithOnlyPlanningProfile() {\n final UserBitShared.QueryProfile planningProfile =\n UserBitShared.QueryProfile.newBuilder()\n .setPlan(\"PLAN_VALUE\")\n .setQuery(\"Select * from plan\")\n .setState(UserBitShared.QueryResult.QueryState.COMPLETED)\n ...
{ "fields": [ { "declarator": "planningProfile", "modifier": "private final", "original_string": "private final QueryProfile planningProfile;", "type": "QueryProfile", "var_name": "planningProfile" }, { "declarator": "tailProfile", "modifier": "private final", ...
{ "body": "static QueryProfile merge(QueryProfile planningProfile, QueryProfile tailProfile,\n Stream<ExecutorQueryProfile> executorProfiles) {\n\n return new ProfileMerger(planningProfile, tailProfile, executorProfiles).merge();\n }", "class_method_signature": "ProfileMerger.merge(QueryProfile planningProfi...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_338
{ "fields": [], "file": "sabot/kernel/src/test/java/com/dremio/exec/planner/sql/handlers/commands/TestMetadataProviderConditions.java", "identifier": "TestMetadataProviderConditions", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testLikeFilterMixedCase() {\n Predicate<String> filter = MetadataProviderConditions.getCatalogNamePredicate(newLikeFilter(\"AbC\", \"\\\\\"));\n assertTrue(filter.test(\"abc\"));\n assertFalse(filter.test(\"abcd\"));\n assertFalse(filter.test(\"aabc\"));\n assertTrue(fil...
{ "fields": [ { "declarator": "ALWAYS_TRUE = x -> true", "modifier": "static final", "original_string": "static final Predicate<String> ALWAYS_TRUE = x -> true;", "type": "Predicate<String>", "var_name": "ALWAYS_TRUE" }, { "declarator": "SQL_LIKE_ANY_STRING_PATTERN = \"...
{ "body": "public static Predicate<String> getCatalogNamePredicate(LikeFilter filter) {\n if (filter == null || !filter.hasPattern() || SQL_LIKE_ANY_STRING_PATTERN.equals(filter.getPattern())) {\n return ALWAYS_TRUE;\n }\n\n final String patternString =\n RegexpUtil.sqlToRegexLike(filter.getPattern...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_292
{ "fields": [ { "declarator": "testAllocator", "modifier": "private", "original_string": "private BufferAllocator testAllocator;", "type": "BufferAllocator", "var_name": "testAllocator" }, { "declarator": "TOTAL_STRINGS = 1024", "modifier": "static final", "...
{ "body": "@Test\n public void TestInterleavedMidToSmall()\n {\n //insert the values from l1\n LinkedList<String> l1 = GetRandomStringList(TOTAL_STRINGS, midAvgSize);\n //update values from l2\n LinkedList<String> l2 = GetRandomStringList(TOTAL_STRINGS, smallAvgSize);\n\n final double threshold = 1.0...
{ "fields": [ { "declarator": "garbageSizeInBytes", "modifier": "private", "original_string": "private int garbageSizeInBytes;", "type": "int", "var_name": "garbageSizeInBytes" }, { "declarator": "compactionThreshold", "modifier": "private", "original_string...
{ "body": "@Override\n public void close() {\n this.clear();\n }", "class_method_signature": "MutableVarcharVector.close()", "constructor": false, "full_signature": "@Override public void close()", "identifier": "close", "invocations": [ "clear" ], "modifiers": "@Override public", "parameters...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_31
{ "fields": [ { "declarator": "datasetPath = new DatasetPath(\"myspace.parentDS\")", "modifier": "private final", "original_string": "private final DatasetPath datasetPath = new DatasetPath(\"myspace.parentDS\");", "type": "DatasetPath", "var_name": "datasetPath" }, { "...
{ "body": "@Test\n public void testMutatorApplyDropPreview() {\n boolean preview = true;\n TransformResult result2 = mutator(preview).apply(\"foo\", \"foo2\", newValue, true);\n assertEquals(newHashSet(\"foo2\"), result2.getAddedColumns());\n assertEquals(newHashSet(), result2.getModifiedColumns());\n ...
{ "fields": [ { "declarator": "logger = org.slf4j.LoggerFactory.getLogger(DatasetStateMutator.class)", "modifier": "private static final", "original_string": "private static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(DatasetStateMutator.class);", "type": "org.slf4j.L...
{ "body": "public TransformResult apply(String oldCol, String newCol, ExpressionBase newExp, boolean dropSourceColumn) {\n return apply(oldCol, newCol, newExp.wrap(), dropSourceColumn);\n }", "class_method_signature": "DatasetStateMutator.apply(String oldCol, String newCol, ExpressionBase newExp, boolean dropSo...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_416
{ "fields": [], "file": "sabot/kernel/src/test/java/com/dremio/exec/server/options/TestOptionValueProtoUtils.java", "identifier": "TestOptionValueProtoUtils", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testStringOptionFromProto() {\n final OptionValueProto optionProto = OptionValueProto.newBuilder()\n .setName(\"test.option\")\n .setStringVal(\"test-option\")\n .build();\n final OptionValue option = OptionValueProtoUtils.toOptionValue(optionProto);\n assertTru...
{ "fields": [], "file": "sabot/kernel/src/main/java/com/dremio/exec/server/options/OptionValueProtoUtils.java", "identifier": "OptionValueProtoUtils", "interfaces": "", "methods": [ { "class_method_signature": "OptionValueProtoUtils.OptionValueProtoUtils()", "constructor": true, "full_si...
{ "body": "public static OptionValue toOptionValue(OptionValueProto value) {\n switch (value.getOptionValCase()) {\n case NUM_VAL:\n return OptionValue.createLong(\n OptionValue.OptionType.SYSTEM,\n value.getName(),\n value.getNumVal()\n );\n case STRING_VAL:\n r...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_103
{ "fields": [ { "declarator": "SOURCES_PATH = \"/source/\"", "modifier": "private static final", "original_string": "private static final String SOURCES_PATH = \"/source/\";", "type": "String", "var_name": "SOURCES_PATH" }, { "declarator": "reader = ConnectionReader.of(...
{ "body": "@Test\n public void testListSources() throws Exception {\n ResponseList<SourceResource.SourceDeprecated> sources = expectSuccess(getBuilder(getPublicAPI(3).path(SOURCES_PATH)).buildGet(), new GenericType<ResponseList<SourceResource.SourceDeprecated>>() {});\n assertEquals(sources.getData().size(), n...
{ "fields": [ { "declarator": "logger = LoggerFactory.getLogger(SourceResource.class)", "modifier": "private static final", "original_string": "private static final Logger logger = LoggerFactory.getLogger(SourceResource.class);", "type": "Logger", "var_name": "logger" }, { ...
{ "body": "@GET\n @RolesAllowed({\"admin\", \"user\"})\n public ResponseList<Source> getSources() {\n final ResponseList<Source> sources = new ResponseList<>();\n\n final List<SourceConfig> sourceConfigs = sourceService.getSources();\n for (SourceConfig sourceConfig : sourceConfigs) {\n Source source ...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_380
{ "fields": [ { "declarator": "schemaConverter", "modifier": "private", "original_string": "private SchemaConverter schemaConverter;", "type": "SchemaConverter", "var_name": "schemaConverter" }, { "declarator": "expectedEx = ExpectedException.none()", "modifier": ...
{ "body": "@Test\n public void testPartitionComparatorField() {\n BatchSchema inputschema = BatchSchema.newBuilder()\n .addField(CompleteType.BIT.toField(\"boolean\"))\n .addField(CompleteType.INT.toField(\"int\"))\n .addField(CompleteType.BIT.toField(WriterPrel.PARTITION_COMPARATOR_FIELD))\n ...
{ "fields": [], "file": "sabot/kernel/src/main/java/com/dremio/exec/store/iceberg/SchemaConverter.java", "identifier": "SchemaConverter", "interfaces": "", "methods": [ { "class_method_signature": "SchemaConverter.SchemaConverter()", "constructor": true, "full_signature": "public Schema...
{ "body": "public org.apache.iceberg.Schema toIceberg(BatchSchema schema) {\n org.apache.iceberg.Schema icebergSchema = new org.apache.iceberg.Schema(schema\n .getFields()\n .stream()\n .filter(x -> !x.getName().equalsIgnoreCase(WriterPrel.PARTITION_COMPARATOR_FIELD))\n .map(x -> toIcebergColum...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_695
{ "fields": [ { "declarator": "REMOTE_ENDPOINT_1 = newNodeEndpoint(\"10.0.0.2\", 1234)", "modifier": "private static final", "original_string": "private static final NodeEndpoint REMOTE_ENDPOINT_1 = newNodeEndpoint(\"10.0.0.2\", 1234);", "type": "NodeEndpoint", "var_name": "REMOTE_EN...
{ "body": "@Test\n public void testCanonicalizeLocalFileIfNoLocalAccess() throws IOException {\n Provider<Iterable<NodeEndpoint>> endpointsProvider =\n DirectProvider.<Iterable<NodeEndpoint>>wrap((Arrays.asList(REMOTE_ENDPOINT_1, REMOTE_ENDPOINT_2)));\n PDFSConfig pdfsConfig = new PDFSConfig(MoreExecuto...
{ "fields": [ { "declarator": "logger = org.slf4j.LoggerFactory.getLogger(PseudoDistributedFileSystem.class)", "modifier": "private static final", "original_string": "private static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(PseudoDistributedFileSystem.class);", "typ...
{ "body": "@Override\n public Path canonicalizePath(Path p) throws IOException {\n Path absolutePath = toAbsolutePath(p);\n checkPath(absolutePath);\n\n if (isRemoteFile(absolutePath)) {\n return absolutePath;\n }\n\n if (isDirectory(absolutePath)) {\n return absolutePath;\n }\n\n if (...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_400
{ "fields": [], "file": "sabot/kernel/src/test/java/com/dremio/exec/store/dfs/TestDremioFileSystemCache.java", "identifier": "TestDremioFileSystemCache", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void withoutUniqueConnPropsWithCacheExplicitlyDisabled() throws Exception {\n final DremioFileSystemCache dfsc = new DremioFileSystemCache();\n final URI uri = URI.create(\"file:///path\");\n\n Configuration conf1 = new Configuration();\n final String disableCacheName = String....
{ "fields": [ { "declarator": "logger = org.slf4j.LoggerFactory.getLogger(DremioFileSystemCache.class)", "modifier": "private static final", "original_string": "private static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(DremioFileSystemCache.class);", "type": "org.slf...
{ "body": "public FileSystem get(URI uri, Configuration conf, List<String> uniqueConnectionProps) throws IOException{\n final Key key = new Key(uri, conf, uniqueConnectionProps);\n\n FileSystem fs;\n synchronized (this) {\n fs = map.get(key);\n }\n if (fs != null) {\n return fs;\n }\n\n ...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_27
{ "fields": [ { "declarator": "datasetPath = new DatasetPath(\"myspace.parentDS\")", "modifier": "private final", "original_string": "private final DatasetPath datasetPath = new DatasetPath(\"myspace.parentDS\");", "type": "DatasetPath", "var_name": "datasetPath" }, { "...
{ "body": "@Test\n public void testMutatorApplyReplaceNonPreview() {\n boolean preview = false;\n TransformResult result1 = mutator(preview).apply(\"foo\", \"foo\", newValue, true);\n assertEquals(newHashSet(), result1.getAddedColumns());\n assertEquals(newHashSet(\"foo\"), result1.getModifiedColumns());...
{ "fields": [ { "declarator": "logger = org.slf4j.LoggerFactory.getLogger(DatasetStateMutator.class)", "modifier": "private static final", "original_string": "private static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(DatasetStateMutator.class);", "type": "org.slf4j.L...
{ "body": "public TransformResult apply(String oldCol, String newCol, ExpressionBase newExp, boolean dropSourceColumn) {\n return apply(oldCol, newCol, newExp.wrap(), dropSourceColumn);\n }", "class_method_signature": "DatasetStateMutator.apply(String oldCol, String newCol, ExpressionBase newExp, boolean dropSo...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_545
{ "fields": [ { "declarator": "NON_NULL_VALUE = \"Non-null value\"", "modifier": "public static final", "original_string": "public static final Object NON_NULL_VALUE = \"Non-null value\";", "type": "Object", "var_name": "NON_NULL_VALUE" }, { "declarator": "genericAccess...
{ "body": "@Test(expected=IndexOutOfBoundsException.class)\n public void testGetObject_indexOutOfBounds() throws Exception {\n genericAccessor.getObject(2);\n }", "class_method_signature": "GenericAccessorTest.testGetObject_indexOutOfBounds()", "constructor": false, "full_signature": "@Test(expected=IndexO...
{ "fields": [ { "declarator": "v", "modifier": "private", "original_string": "private ValueVector v;", "type": "ValueVector", "var_name": "v" } ], "file": "client/jdbc/src/main/java/com/dremio/exec/vector/accessor/GenericAccessor.java", "identifier": "GenericAccessor", "i...
{ "body": "@Override\n public Object getObject(int index) throws InvalidAccessException {\n return v.getObject(index);\n }", "class_method_signature": "GenericAccessor.getObject(int index)", "constructor": false, "full_signature": "@Override public Object getObject(int index)", "identifier": "getObject",...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_115
{ "fields": [ { "declarator": "CATALOG_PATH = \"/catalog/\"", "modifier": "private static final", "original_string": "private static final String CATALOG_PATH = \"/catalog/\";", "type": "String", "var_name": "CATALOG_PATH" }, { "declarator": "SRC_INFORMATION_SCHEMA = 1"...
{ "body": "@Test\n public void testListTopLevelCatalog() throws Exception {\n // home space always exists\n int topLevelCount = newSourceService().getSources().size() + newNamespaceService().getSpaces().size() + 1;\n\n ResponseList<CatalogItem> items = getRootEntities(null);\n\n assertEquals(items.getDat...
{ "fields": [ { "declarator": "catalogServiceHelper", "modifier": "private final", "original_string": "private final CatalogServiceHelper catalogServiceHelper;", "type": "CatalogServiceHelper", "var_name": "catalogServiceHelper" } ], "file": "dac/backend/src/main/java/com/dre...
{ "body": "@GET\n public ResponseList<? extends CatalogItem> listTopLevelCatalog(@QueryParam(\"include\") final List<String> include) {\n return new ResponseList<>(catalogServiceHelper.getTopLevelCatalogItems(include));\n }", "class_method_signature": "CatalogResource.listTopLevelCatalog(@QueryParam(\"include\...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_396
{ "fields": [], "file": "sabot/kernel/src/test/java/com/dremio/exec/store/dfs/easy/TestEasyScanOperatorCreator.java", "identifier": "TestEasyScanOperatorCreator", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void falseWhenAllColumnsAreNotSelected() {\n BatchSchema schema = mock(BatchSchema.class);\n when(schema.iterator())\n .thenReturn(Lists.newArrayList(Field.nullable(\"a1\", new ArrowType.Bool()),\n Field.nullable(\"a2\", new ArrowType.Bool())).iterator());\n assertFal...
{ "fields": [ { "declarator": "logger = org.slf4j.LoggerFactory.getLogger(com.dremio.exec.store.dfs.easy.EasyScanOperatorCreator.class)", "modifier": "private static final", "original_string": "private static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(com.dremio.exec.store...
{ "body": "static boolean selectsAllColumns(final BatchSchema datasetSchema, final List<SchemaPath> projectedColumns) {\n final Set<String> columnsInTable = FluentIterable.from(datasetSchema)\n .transform(\n new Function<Field, String>() {\n @Override\n public String app...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_683
{ "fields": [ { "declarator": "REMOTE_ENDPOINT_1 = newNodeEndpoint(\"10.0.0.2\", 1234)", "modifier": "private static final", "original_string": "private static final NodeEndpoint REMOTE_ENDPOINT_1 = newNodeEndpoint(\"10.0.0.2\", 1234);", "type": "NodeEndpoint", "var_name": "REMOTE_EN...
{ "body": "@Test\n public void testRenameFromRoot() throws IOException {\n Path root = new Path(\"/\");\n Path dst = new Path(\"/foo/baz\");\n\n try {\n fs.rename(root, dst);\n fail(\"Expected rename to throw an exception\");\n } catch(IOException e) {\n // ok\n }\n }", "class_method...
{ "fields": [ { "declarator": "logger = org.slf4j.LoggerFactory.getLogger(PseudoDistributedFileSystem.class)", "modifier": "private static final", "original_string": "private static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(PseudoDistributedFileSystem.class);", "typ...
{ "body": "@Override\n public boolean rename(Path src, Path dst) throws IOException {\n Path absoluteSrc = toAbsolutePath(src);\n Path absoluteDst = toAbsolutePath(dst);\n checkPath(absoluteSrc);\n checkPath(absoluteDst);\n\n // Handle root\n if (absoluteSrc.isRoot()) {\n throw new IOException...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_379
{ "fields": [ { "declarator": "schemaConverter", "modifier": "private", "original_string": "private SchemaConverter schemaConverter;", "type": "SchemaConverter", "var_name": "schemaConverter" }, { "declarator": "expectedEx = ExpectedException.none()", "modifier": ...
{ "body": "@Test\n public void mixed() throws Exception {\n BatchSchema schema = BatchSchema.newBuilder()\n .addField(CompleteType.INT.toField(\"rownum\"))\n .addField(CompleteType.VARCHAR.toField(\"name\"))\n .addField(CompleteType.INT.toField(\"age\"))\n .addField(CompleteType.FLOAT.toField(...
{ "fields": [], "file": "sabot/kernel/src/main/java/com/dremio/exec/store/iceberg/SchemaConverter.java", "identifier": "SchemaConverter", "interfaces": "", "methods": [ { "class_method_signature": "SchemaConverter.SchemaConverter()", "constructor": true, "full_signature": "public Schema...
{ "body": "public org.apache.iceberg.Schema toIceberg(BatchSchema schema) {\n org.apache.iceberg.Schema icebergSchema = new org.apache.iceberg.Schema(schema\n .getFields()\n .stream()\n .filter(x -> !x.getName().equalsIgnoreCase(WriterPrel.PARTITION_COMPARATOR_FIELD))\n .map(x -> toIcebergColum...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_729
{ "fields": [ { "declarator": "temporaryFolder = new TemporaryFolder()", "modifier": "@Rule\n public final", "original_string": "@Rule\n public final TemporaryFolder temporaryFolder = new TemporaryFolder();", "type": "TemporaryFolder", "var_name": "temporaryFolder" } ], "fi...
{ "body": "@Test\n public void testSkipJDKClassLoaders() throws MalformedURLException, IOException {\n ClassLoader classLoader = ClassLoader.getSystemClassLoader();\n ClassLoader parent = classLoader.getParent();\n\n // This test is only meaningful if parent classloader exists (most likely the extension cla...
{ "fields": [ { "declarator": "X_DREMIO_LIBRARY_PATH_MANIFEST_ATTRIBUTE = \"X-Dremio-Library-Path\"", "modifier": "public static final", "original_string": "public static final String X_DREMIO_LIBRARY_PATH_MANIFEST_ATTRIBUTE = \"X-Dremio-Library-Path\";", "type": "String", "var_name"...
{ "body": "@VisibleForTesting\n static Stream<Path> toPathStream(ClassLoader classLoader) {\n if (classLoader == null) {\n return Stream.of();\n }\n\n if (classLoader != ClassLoader.getSystemClassLoader()) {\n // First add jar/classes loaded by the parent classloader in order to preserve\n //...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_70
{ "fields": [ { "declarator": "recommender = new ExtractMapRecommender()", "modifier": "private", "original_string": "private ExtractMapRecommender recommender = new ExtractMapRecommender();", "type": "ExtractMapRecommender", "var_name": "recommender" } ], "file": "dac/backen...
{ "body": "@Test\n public void testExtractMapRules() throws Exception {\n List<ExtractMapRule> rules = recommender.getRules(new MapSelection(\"foo\", ImmutableList.of(\"a\")), DataType.MAP);\n assertEquals(1, rules.size());\n assertEquals(\"a\", rules.get(0).getPath());\n }", "class_method_signature": "T...
{ "fields": [], "file": "dac/backend/src/main/java/com/dremio/dac/explore/ExtractMapRecommender.java", "identifier": "ExtractMapRecommender", "interfaces": "", "methods": [ { "class_method_signature": "ExtractMapRecommender.getRules(MapSelection selection, DataType selColType)", "constructor":...
{ "body": "@Override\n public List<ExtractMapRule> getRules(MapSelection selection, DataType selColType) {\n checkArgument(selColType == DataType.MAP, \"Extract map entries is supported only on MAP type columns\");\n return Collections.singletonList(new ExtractMapRule(Joiner.on(\".\").join(selection.getMapPath...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_457
{ "fields": [ { "declarator": "collector = new ErrorCollector()", "modifier": "@Rule\n public final", "original_string": "@Rule\n public final ErrorCollector collector = new ErrorCollector();", "type": "ErrorCollector", "var_name": "collector" } ], "file": "common/src/test/...
{ "body": "@Test\n public void testGetName() {\n checkGetName(Path.of(\"/foo/bar\"), \"bar\");\n checkGetName(Path.of(\"/foo/bar baz\"), \"bar baz\");\n checkGetName(Path.of(\"//foo/bar\"), \"bar\");\n checkGetName(Path.of(\"foo/bar\"), \"bar\");\n checkGetName(Path.of(\"hdfs:///foo/bar\"), \"bar\");\...
{ "fields": [ { "declarator": "SEPARATOR = \"/\"", "modifier": "public static final", "original_string": "public static final String SEPARATOR = \"/\";", "type": "String", "var_name": "SEPARATOR" }, { "declarator": "SEPARATOR_CHAR = '/'", "modifier": "public stati...
{ "body": "public String getName() {\n final String path = uri.getPath();\n int index = path.lastIndexOf(SEPARATOR_CHAR);\n return path.substring(index + 1);\n }", "class_method_signature": "Path.getName()", "constructor": false, "full_signature": "public String getName()", "identifier": "getName",...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_142
{ "fields": [ { "declarator": "attemptsHelper", "modifier": "private", "original_string": "private AttemptsHelper attemptsHelper;", "type": "AttemptsHelper", "var_name": "attemptsHelper" } ], "file": "services/jobs/src/test/java/com/dremio/service/jobs/TestAttemptsHelper.java...
{ "body": "@Test\n public void testGetPlanningTime() {\n // enqueued job\n final ResourceSchedulingInfo schedulingInfo = new ResourceSchedulingInfo()\n .setResourceSchedulingStart(System.currentTimeMillis() - TimeUnit.HOURS.toMillis(3))\n .setResourceSchedulingEnd(0L);\n final JobInfo info = new J...
{ "fields": [ { "declarator": "stateDurations", "modifier": "private final", "original_string": "private final Map<AttemptEvent.State, Long> stateDurations;", "type": "Map<AttemptEvent.State, Long>", "var_name": "stateDurations" }, { "declarator": "events", "modif...
{ "body": "public Long getPlanningTime() {\n return getDuration(State.PLANNING);\n }", "class_method_signature": "AttemptsHelper.getPlanningTime()", "constructor": false, "full_signature": "public Long getPlanningTime()", "identifier": "getPlanningTime", "invocations": [ "getDuration" ], "modifi...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_512
{ "fields": [], "file": "common/src/test/java/com/dremio/common/utils/TestSqlUtils.java", "identifier": "TestSqlUtils", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testQuoteIdentifier() {\n assertEquals(\"\\\"window\\\"\", SqlUtils.quoteIdentifier(\"window\"));\n assertEquals(\"\\\"metadata\\\"\", SqlUtils.quoteIdentifier(\"metadata\"));\n\n assertEquals(\"abc\", SqlUtils.quoteIdentifier(\"abc\"));\n assertEquals(\"abc123\", SqlUtils....
{ "fields": [ { "declarator": "logger = org.slf4j.LoggerFactory.getLogger(SqlUtils.class)", "modifier": "private static final", "original_string": "private static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(SqlUtils.class);", "type": "org.slf4j.Logger", "var_nam...
{ "body": "public static String quoteIdentifier(final String id) {\n if (id.isEmpty()) {\n return id;\n }\n\n if (isKeyword(id)) {\n return quoteString(id);\n }\n\n if (Character.isAlphabetic(id.charAt(0)) && ALPHANUM_MATCHER.matchesAllOf(id)) {\n return id;\n }\n\n // Special case...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_284
{ "fields": [], "file": "services/scheduler/src/test/java/com/dremio/service/scheduler/TestLocalSchedulerService.java", "identifier": "TestLocalSchedulerService", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void close() throws Exception {\n final CloseableSchedulerThreadPool executorService = mock(CloseableSchedulerThreadPool.class);\n final LocalSchedulerService service = new LocalSchedulerService(executorService, null, null, false);\n\n service.close();\n\n verify(executorService...
{ "fields": [ { "declarator": "LOGGER = org.slf4j.LoggerFactory.getLogger(LocalSchedulerService.class)", "modifier": "private static final", "original_string": "private static final org.slf4j.Logger LOGGER = org.slf4j.LoggerFactory.getLogger(LocalSchedulerService.class);", "type": "org.slf...
{ "body": "@Override\n public void close() throws Exception {\n LOGGER.info(\"Stopping SchedulerService\");\n AutoCloseables.close(AutoCloseables.iter(executorService), taskLeaderElectionServiceMap.values());\n LOGGER.info(\"Stopped SchedulerService\");\n }", "class_method_signature": "LocalSchedulerServ...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_139
{ "fields": [ { "declarator": "jobAttemptProtobuf", "modifier": "private static", "original_string": "private static JobProtobuf.JobAttempt jobAttemptProtobuf;", "type": "JobProtobuf.JobAttempt", "var_name": "jobAttemptProtobuf" }, { "declarator": "jobAttemptProtostuff"...
{ "body": "@Test\n public void testToStuff() {\n JobAttempt resultJobAttempt = toStuff(jobAttemptProtobuf);\n assertEquals(resultJobAttempt, jobAttemptProtostuff);\n\n //test for jobFailureInfo\n JobFailureInfo jobFailureInfo = toStuff(jobFailureInfoProtoBuf);\n assertEquals(jobFailureInfoProtoStuff, ...
{ "fields": [], "file": "services/jobs/src/main/java/com/dremio/service/jobs/JobsProtoUtil.java", "identifier": "JobsProtoUtil", "interfaces": "", "methods": [ { "class_method_signature": "JobsProtoUtil.JobsProtoUtil()", "constructor": true, "full_signature": "private JobsProtoUtil()", ...
{ "body": "private static <M extends GeneratedMessageV3, T extends Message<T> & Schema<T>>\n T toStuff(Schema<T> protostuffSchema, M protobuf) {\n T message = protostuffSchema.newMessage();\n ProtobufIOUtil.mergeFrom(protobuf.toByteArray(), message, protostuffSchema);\n return message;\n }", "class_metho...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_569
{ "fields": [], "file": "client/jdbc/src/test/java/com/dremio/jdbc/impl/TypeConvertingSqlAccessorTest.java", "identifier": "TypeConvertingSqlAccessorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void test_getByte_on_BIGINT_thatFits_getsIt()\n throws InvalidAccessException {\n final SqlAccessor uut =\n new TypeConvertingSqlAccessor( new BigIntStubAccessor( -128 ) );\n assertThat( uut.getByte( 0 ), equalTo( (byte) -128 ) );\n }", "class_method_signature": "TypeCo...
{ "fields": [ { "declarator": "innerAccessor", "modifier": "private final", "original_string": "private final SqlAccessor innerAccessor;", "type": "SqlAccessor", "var_name": "innerAccessor" } ], "file": "client/jdbc/src/main/java/com/dremio/jdbc/impl/TypeConvertingSqlAccessor...
{ "body": "@Override\n public byte getByte( int rowOffset ) throws InvalidAccessException {\n final byte result;\n switch ( getType().getMinorType() ) {\n // 1. Regular type:\n case TINYINT:\n result = innerAccessor.getByte( rowOffset );\n break;\n\n // 2. Converted-from types:\n ...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_586
{ "fields": [], "file": "client/jdbc/src/test/java/com/dremio/jdbc/impl/TypeConvertingSqlAccessorTest.java", "identifier": "TypeConvertingSqlAccessorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void test_getInt_on_SMALLINT_getsIt() throws InvalidAccessException {\n final SqlAccessor uut1 =\n new TypeConvertingSqlAccessor( new SmallIntStubAccessor( (short) 32767 ) );\n assertThat( uut1.getInt( 0 ), equalTo( 32767 ) );\n final SqlAccessor uut2 =\n new TypeConv...
{ "fields": [ { "declarator": "innerAccessor", "modifier": "private final", "original_string": "private final SqlAccessor innerAccessor;", "type": "SqlAccessor", "var_name": "innerAccessor" } ], "file": "client/jdbc/src/main/java/com/dremio/jdbc/impl/TypeConvertingSqlAccessor...
{ "body": "@Override\n public int getInt( int rowOffset ) throws InvalidAccessException {\n final int result;\n switch ( getType().getMinorType() ) {\n // 1. Regular type:\n case INT:\n result = innerAccessor.getInt( rowOffset );\n break;\n\n // 2. Converted-from types:\n case...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_705
{ "fields": [ { "declarator": "mockTempDir", "modifier": "private static", "original_string": "private static Path mockTempDir;", "type": "Path", "var_name": "mockTempDir" }, { "declarator": "mockNestedTempDir", "modifier": "private static", "original_string...
{ "body": "@Test\n public void validateZipDirectoryValidUpdirMoreThanNestedCorrectDir() throws IOException {\n ZipEntry entry = new ZipEntry(\"../../../../baseTmpDir/nestedTmpDir/somedir/somefile\");\n NativeLibPluginClassLoader.validateZipDirectory(mockNestedTempDir, entry);\n }", "class_method_signature":...
{ "fields": [ { "declarator": "logger = org.slf4j.LoggerFactory.getLogger(NativeLibPluginClassLoader.class)", "modifier": "private static final", "original_string": "private static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(NativeLibPluginClassLoader.class);", "type"...
{ "body": "@VisibleForTesting\n static void validateZipDirectory(Path tempDirectory, final ZipEntry entry) throws IOException {\n final Path destinationPath = tempDirectory.resolve(entry.getName()).normalize();\n if (!destinationPath.startsWith(tempDirectory)) {\n throw new IOException(String.format(\"JAR...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_355
{ "fields": [ { "declarator": "ARBTRIARY_LEAF", "modifier": "private static final", "original_string": "private static final EmptyValues ARBTRIARY_LEAF;", "type": "EmptyValues", "var_name": "ARBTRIARY_LEAF" }, { "declarator": "SORT_FACTOR = new TypeValidators.RangeDoubl...
{ "body": "@Test\n public void syntheticSimple() {\n ConfigurableOperator cnb = new ConfigurableOperator(OpProps.prototype(1, Long.MAX_VALUE).cloneWithMemoryExpensive(true).cloneWithBound(false).cloneWithMemoryFactor(2.0d), ARBTRIARY_LEAF);\n ConfigurableOperator cb = new ConfigurableOperator(OpProps.prototype...
{ "fields": [ { "declarator": "logger = org.slf4j.LoggerFactory.getLogger(MemoryAllocationUtilities.class)", "modifier": "private static final", "original_string": "private static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(MemoryAllocationUtilities.class);", "type": ...
{ "body": "@VisibleForTesting\n static void setMemory(final OptionManager optionManager, Map<Fragment, Wrapper> fragments, long maxMemoryPerNodePerQuery) {\n final ArrayListMultimap<NodeEndpoint, PhysicalOperator> consideredOps = ArrayListMultimap.create();\n final ArrayListMultimap<NodeEndpoint, PhysicalOpera...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_640
{ "fields": [ { "declarator": "TEST_RPC_TIMEOUT_MS = 100", "modifier": "private static final", "original_string": "private static final int TEST_RPC_TIMEOUT_MS = 100;", "type": "int", "var_name": "TEST_RPC_TIMEOUT_MS" }, { "declarator": "logger = org.slf4j.LoggerFactory...
{ "body": "@Test\n public void testListStatusRoot() throws Exception {\n {\n DFS.ListStatusResponse listStatusResponse = DFS.ListStatusResponse.newBuilder()\n .addStatuses(newFileStatus(42, true, 0, 0, 456, 879, 0755, \"root\", \"wheel\", \"/foo\"))\n .addStatuses(newFileStatus(1024, false,...
{ "fields": [ { "declarator": "logger = org.slf4j.LoggerFactory.getLogger(RemoteNodeFileSystem.class)", "modifier": "private static final", "original_string": "private static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(RemoteNodeFileSystem.class);", "type": "org.slf4j...
{ "body": "@Override\n public FileStatus[] listStatus(Path f) throws FileNotFoundException, IOException {\n RemoteIterator<FileStatus> remoteIterator = listStatusIterator(f);\n List<FileStatus> statuses = new ArrayList<>();\n while(remoteIterator.hasNext()) {\n statuses.add(remoteIterator.next());\n ...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_210
{ "fields": [ { "declarator": "versionOption = new ImmutableVersionOption.Builder().setTag(\"1\").build()", "modifier": "private static final", "original_string": "private static final VersionOption versionOption = new ImmutableVersionOption.Builder().setTag(\"1\").build();", "type": "Vers...
{ "body": "@Test\n public void testValidateOptionsSingleVersion() {\n KVStoreOptionUtility.validateOptions(new KVStore.PutOption[]{versionOption});\n }", "class_method_signature": "KVStoreOptionUtilityTest.testValidateOptionsSingleVersion()", "constructor": false, "full_signature": "@Test public void testV...
{ "fields": [], "file": "services/datastore/src/main/java/com/dremio/datastore/api/options/KVStoreOptionUtility.java", "identifier": "KVStoreOptionUtility", "interfaces": "", "methods": [ { "class_method_signature": "KVStoreOptionUtility.validateOptions(KVStore.KVStoreOption... options)", "con...
{ "body": "public static void validateOptions(KVStore.KVStoreOption... options) {\n if (null == options || options.length <= 1) {\n return;\n }\n\n boolean foundVersion = false;\n boolean foundCreate = false;\n\n for (KVStore.KVStoreOption option : options) {\n if (option == KVStore.PutOption...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_494
{ "fields": [], "file": "common/src/test/java/com/dremio/common/utils/protos/TestBlackListOutput.java", "identifier": "TestBlackListOutput", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void writeUInt64() throws IOException {\n Output delegate = Mockito.mock(Output.class);\n BlackListOutput subject =\n new BlackListOutput(\n delegate,\n Collections.emptyMap(),\n new int[]{2}\n );\n\n subject.writeUInt64(1, 9, false)...
{ "fields": [ { "declarator": "EmptyArray = new int[0]", "modifier": "private static final", "original_string": "private static final int[] EmptyArray = new int[0];", "type": "int[]", "var_name": "EmptyArray" }, { "declarator": "delegate", "modifier": "private fin...
{ "body": "@Override\n public void writeUInt64(int fieldNumber, long value, boolean repeated) throws IOException {\n if(isBlackListed(fieldNumber)){\n return;\n }\n delegate.writeUInt64(fieldNumber, value, repeated);\n }", "class_method_signature": "BlackListOutput.writeUInt64(int fieldNumber, long ...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_181
{ "fields": [], "file": "services/datastore/src/test/java/com/dremio/datastore/format/compound/KeyUtilsTest.java", "identifier": "KeyUtilsTest", "interfaces": "", "superclass": "extends FormatTestArtifacts" }
{ "body": "@Test\n public void testEqualsReturnsFalseWithByteArrays() {\n byte[] left = new byte[]{0, 1, 2, 3, 4};\n byte[] right = new byte[]{0, 1, 2, 3, 5};\n\n assertFalse(KeyUtils.equals(left, right));\n }", "class_method_signature": "KeyUtilsTest.testEqualsReturnsFalseWithByteArrays()", "construct...
{ "fields": [], "file": "services/datastore/src/main/java/com/dremio/datastore/format/compound/KeyUtils.java", "identifier": "KeyUtils", "interfaces": "", "methods": [ { "class_method_signature": "KeyUtils.KeyUtils()", "constructor": true, "full_signature": "private KeyUtils()", "...
{ "body": "public static boolean equals(Object left, Object right) {\n if (left instanceof byte[] && right instanceof byte[]) {\n return Arrays.equals((byte[]) left, (byte[]) right);\n }\n return Objects.equals(left, right);\n }", "class_method_signature": "KeyUtils.equals(Object left, Object right)"...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_302
{ "fields": [ { "declarator": "bfTestAllocator", "modifier": "private", "original_string": "private BufferAllocator bfTestAllocator;", "type": "BufferAllocator", "var_name": "bfTestAllocator" }, { "declarator": "allocatorRule = AllocatorRule.defaultAllocator()", "...
{ "body": "@Test\n public void testSendRuntimeFilterToProbeScanMajorFragmentNotPresent() {\n int probeScanId = 2; // no major fragment present on this id. Expect send to be silently skipped.\n int differentProbeScanId = 5; // major fragment will be present only for this ID\n int probeOpId = 13...
{ "fields": [ { "declarator": "logger = org.slf4j.LoggerFactory.getLogger(VectorizedHashJoinOperator.class)", "modifier": "private static final", "original_string": "private static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(VectorizedHashJoinOperator.class);", "type"...
{ "body": "@VisibleForTesting\n void sendRuntimeFilterToProbeScan(RuntimeFilter filter, Optional<BloomFilter> partitionColFilter) {\n logger.debug(\"Sending join runtime filter to probe scan {}:{}, Filter {}\", filter.getProbeScanOperatorId(), filter.getProbeScanMajorFragmentId(), partitionColFilter);\n logger...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_247
{ "fields": [], "file": "services/accelerator/src/test/java/com/dremio/service/reflection/TestReflectionGoalChecker.java", "identifier": "TestReflectionGoalChecker", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testHashingEmptyGoal(){\n ReflectionGoal goal = new ReflectionGoal();\n ReflectionGoalHash actual = ReflectionGoalChecker.Instance.calculateReflectionGoalVersion(goal);\n assertEquals(\"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855\", actual.getHash());\n }", ...
{ "fields": [ { "declarator": "Instance = new ReflectionGoalChecker()", "modifier": "public static final", "original_string": "public static final ReflectionGoalChecker Instance = new ReflectionGoalChecker();", "type": "ReflectionGoalChecker", "var_name": "Instance" }, { ...
{ "body": "public ReflectionGoalHash calculateReflectionGoalVersion(ReflectionGoal reflectionGoal){\n HasherOutput hasherOutput = new HasherOutput();\n Output blackListedOutput = reflectionGoalMaterializationBlackLister.apply(hasherOutput);\n try {\n reflectionGoal.writeTo(blackListedOutput, reflectionG...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_617
{ "fields": [], "file": "plugins/s3/src/test/java/com/dremio/plugins/s3/store/TestS3FileSystem.java", "identifier": "TestS3FileSystem", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testInvalidRegionFromEndpoint() {\n Region r = S3FileSystem.getAwsRegionFromEndpoint(\"us-west-1\");\n Assert.assertEquals(Region.US_EAST_1, r);\n\n r = S3FileSystem.getAwsRegionFromEndpoint(\"s3-eu-central-1\");\n Assert.assertEquals(Region.US_EAST_1, r);\n\n r = S3File...
{ "fields": [ { "declarator": "S3_PERMISSION_ERROR_MSG = \"Access was denied by S3\"", "modifier": "public static final", "original_string": "public static final String S3_PERMISSION_ERROR_MSG = \"Access was denied by S3\";", "type": "String", "var_name": "S3_PERMISSION_ERROR_MSG" ...
{ "body": "static software.amazon.awssdk.regions.Region getAwsRegionFromEndpoint(String endpoint) {\n // Determine if one of the known AWS regions is contained within the given endpoint, and return that region if so.\n return Optional.ofNullable(endpoint)\n .map(e -> e.toLowerCase(Locale.ROOT)) // lower-ca...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_482
{ "fields": [], "file": "common/src/test/java/com/dremio/common/TestAutoCloseables.java", "identifier": "TestAutoCloseables", "interfaces": "", "superclass": "" }
{ "body": "@Test(expected = IOException.class)\n public void testCloseWithExpectedWrappedException() throws IOException {\n Resource r1 = new Resource();\n Resource r2 = new Resource();\n AutoCloseables.close(IOException.class,\n () -> r1.closeWithException(new Exception(\"R1 exception\")),\n () -...
{ "fields": [ { "declarator": "noOpAutocloseable = new AutoCloseable() {\n @Override\n public void close() {\n }\n }", "modifier": "private static final", "original_string": "private static final AutoCloseable noOpAutocloseable = new AutoCloseable() {\n @Override\n public void cl...
{ "body": "public static void close(Throwable t, AutoCloseable... autoCloseables) {\n close(t, Arrays.asList(autoCloseables));\n }", "class_method_signature": "AutoCloseables.close(Throwable t, AutoCloseable... autoCloseables)", "constructor": false, "full_signature": "public static void close(Throwable t, ...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_178
{ "fields": [], "file": "services/datastore/src/test/java/com/dremio/datastore/format/compound/KeyUtilsTest.java", "identifier": "KeyUtilsTest", "interfaces": "", "superclass": "extends FormatTestArtifacts" }
{ "body": "@Test\n public void testEqualsReturnsFalseWithBooleanTrueFalse() {\n assertFalse(KeyUtils.equals(Boolean.TRUE, Boolean.FALSE));\n }", "class_method_signature": "KeyUtilsTest.testEqualsReturnsFalseWithBooleanTrueFalse()", "constructor": false, "full_signature": "@Test public void testEqualsReturn...
{ "fields": [], "file": "services/datastore/src/main/java/com/dremio/datastore/format/compound/KeyUtils.java", "identifier": "KeyUtils", "interfaces": "", "methods": [ { "class_method_signature": "KeyUtils.KeyUtils()", "constructor": true, "full_signature": "private KeyUtils()", "...
{ "body": "public static boolean equals(Object left, Object right) {\n if (left instanceof byte[] && right instanceof byte[]) {\n return Arrays.equals((byte[]) left, (byte[]) right);\n }\n return Objects.equals(left, right);\n }", "class_method_signature": "KeyUtils.equals(Object left, Object right)"...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_197
{ "fields": [], "file": "services/datastore/src/test/java/com/dremio/datastore/format/compound/KeyUtilsTest.java", "identifier": "KeyUtilsTest", "interfaces": "", "superclass": "extends FormatTestArtifacts" }
{ "body": "@Test\n public void testHashNull() {\n assertEquals(0, KeyUtils.hash(null));\n }", "class_method_signature": "KeyUtilsTest.testHashNull()", "constructor": false, "full_signature": "@Test public void testHashNull()", "identifier": "testHashNull", "invocations": [ "assertEquals", "hash...
{ "fields": [], "file": "services/datastore/src/main/java/com/dremio/datastore/format/compound/KeyUtils.java", "identifier": "KeyUtils", "interfaces": "", "methods": [ { "class_method_signature": "KeyUtils.KeyUtils()", "constructor": true, "full_signature": "private KeyUtils()", "...
{ "body": "public static int hash(Object... keys) {\n if (null == keys) {\n return 0;\n }\n\n int result = 1;\n for (Object key : keys) {\n result = 31 * result + hashCode(key);\n }\n return result;\n }", "class_method_signature": "KeyUtils.hash(Object... keys)", "constructor": false,...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_314
{ "fields": [ { "declarator": "queryId = QueryId\n .newBuilder()\n .setPart1(123L)\n .setPart2(456L)\n .build()", "modifier": "private final", "original_string": "private final QueryId queryId = QueryId\n .newBuilder()\n .setPart1(123L)\n .setPart2(456L)\n .build();", ...
{ "body": "@Test\n public void testEmptyFragmentList() {\n InOrder inOrder = Mockito.inOrder(completionListener, queryCloser);\n FragmentTracker fragmentTracker = new FragmentTracker(queryId, completionListener,\n queryCloser, null,\n new LocalExecutorSetService(DirectProvider.wrap(coordinator),\n ...
{ "fields": [ { "declarator": "logger = org.slf4j.LoggerFactory.getLogger(FragmentTracker.class)", "modifier": "private static final", "original_string": "private static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(FragmentTracker.class);", "type": "org.slf4j.Logger", ...
{ "body": "public void populate(List<PlanFragmentFull> fragments, ResourceSchedulingDecisionInfo decisionInfo) {\n for (PlanFragmentFull fragment : fragments) {\n final NodeEndpoint assignment = fragment.getMinor().getAssignment();\n pendingNodes.add(assignment);\n }\n\n executorSet = executorSetSe...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_601
{ "fields": [], "file": "client/jdbc/src/test/java/com/dremio/jdbc/impl/TypeConvertingSqlAccessorTest.java", "identifier": "TypeConvertingSqlAccessorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test( expected = SQLConversionOverflowException.class )\n public void test_getLong_on_DOUBLE_thatOverflows_rejectsIt()\n throws InvalidAccessException {\n final SqlAccessor uut =\n new TypeConvertingSqlAccessor( new DoubleStubAccessor( 1e20 ) );\n try {\n uut.getLong( 0 );\n }\n...
{ "fields": [ { "declarator": "innerAccessor", "modifier": "private final", "original_string": "private final SqlAccessor innerAccessor;", "type": "SqlAccessor", "var_name": "innerAccessor" } ], "file": "client/jdbc/src/main/java/com/dremio/jdbc/impl/TypeConvertingSqlAccessor...
{ "body": "@Override\n public long getLong( int rowOffset ) throws InvalidAccessException {\n final long result;\n switch ( getType().getMinorType() ) {\n // 1. Regular type:\n case BIGINT:\n result = innerAccessor.getLong( rowOffset );\n break;\n\n // 2. Converted-from types:\n ...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_251
{ "fields": [], "file": "services/accelerator/src/test/java/com/dremio/service/reflection/TestReflectionGoalChecker.java", "identifier": "TestReflectionGoalChecker", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testHashingWithDifferentDetails(){\n ReflectionGoal goal1 = new ReflectionGoal()\n .setId(new ReflectionId(\"xxx\"))\n .setDetails(\n new ReflectionDetails()\n .setDimensionFieldList(ImmutableList.of(\n new ReflectionDimensionField()\n ...
{ "fields": [ { "declarator": "Instance = new ReflectionGoalChecker()", "modifier": "public static final", "original_string": "public static final ReflectionGoalChecker Instance = new ReflectionGoalChecker();", "type": "ReflectionGoalChecker", "var_name": "Instance" }, { ...
{ "body": "public ReflectionGoalHash calculateReflectionGoalVersion(ReflectionGoal reflectionGoal){\n HasherOutput hasherOutput = new HasherOutput();\n Output blackListedOutput = reflectionGoalMaterializationBlackLister.apply(hasherOutput);\n try {\n reflectionGoal.writeTo(blackListedOutput, reflectionG...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_590
{ "fields": [], "file": "client/jdbc/src/test/java/com/dremio/jdbc/impl/TypeConvertingSqlAccessorTest.java", "identifier": "TypeConvertingSqlAccessorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void test_getInt_on_FLOAT_thatFits_getsIt() throws InvalidAccessException {\n final SqlAccessor uut =\n new TypeConvertingSqlAccessor( new FloatStubAccessor( 1e9f ) );\n assertThat( uut.getInt( 0 ), equalTo( 1_000_000_000 ) );\n }", "class_method_signature": "TypeConvertingS...
{ "fields": [ { "declarator": "innerAccessor", "modifier": "private final", "original_string": "private final SqlAccessor innerAccessor;", "type": "SqlAccessor", "var_name": "innerAccessor" } ], "file": "client/jdbc/src/main/java/com/dremio/jdbc/impl/TypeConvertingSqlAccessor...
{ "body": "@Override\n public int getInt( int rowOffset ) throws InvalidAccessException {\n final int result;\n switch ( getType().getMinorType() ) {\n // 1. Regular type:\n case INT:\n result = innerAccessor.getInt( rowOffset );\n break;\n\n // 2. Converted-from types:\n case...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_343
{ "fields": [ { "declarator": "sqlAnalyzer", "modifier": "private", "original_string": "private SQLAnalyzer sqlAnalyzer;", "type": "SQLAnalyzer", "var_name": "sqlAnalyzer" }, { "declarator": "sql", "modifier": "private final", "original_string": "private fin...
{ "body": "@Test\n public void testSuggestion() {\n final SqlParserUtil.StringAndPos stringAndPos = SqlParserUtil.findPos(sql);\n List<SqlMoniker> suggestions = sqlAnalyzer.suggest(stringAndPos.sql, stringAndPos.cursor);\n assertEquals(expectedSuggestionCount, suggestions.size());\n if (checkSuggestions)...
{ "fields": [ { "declarator": "validator", "modifier": "@VisibleForTesting\n protected final", "original_string": "@VisibleForTesting\n protected final SqlValidatorWithHints validator;", "type": "SqlValidatorWithHints", "var_name": "validator" } ], "file": "sabot/kernel/src...
{ "body": "public List<SqlMoniker> suggest(String sql, int cursorPosition) {\n SqlAdvisor sqlAdvisor = new SqlAdvisor(validator);\n String[] replaced = {null};\n return sqlAdvisor.getCompletionHints(sql, cursorPosition , replaced);\n }", "class_method_signature": "SQLAnalyzer.suggest(String sql, int curso...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_713
{ "fields": [ { "declarator": "mockTempDir", "modifier": "private static", "original_string": "private static Path mockTempDir;", "type": "Path", "var_name": "mockTempDir" }, { "declarator": "mockNestedTempDir", "modifier": "private static", "original_string...
{ "body": "@Test\n public void validateZipDirectoryZipSlipTestUpDirsMispelledCorrectDir() throws IOException {\n // This expected to pass, because this will eventually resolve to /tmpDir/somedir/somefile\n // which is a legal path within the base directory.\n ZipEntry entry = new ZipEntry(\"../../../..//tmp...
{ "fields": [ { "declarator": "logger = org.slf4j.LoggerFactory.getLogger(NativeLibPluginClassLoader.class)", "modifier": "private static final", "original_string": "private static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(NativeLibPluginClassLoader.class);", "type"...
{ "body": "@VisibleForTesting\n static void validateZipDirectory(Path tempDirectory, final ZipEntry entry) throws IOException {\n final Path destinationPath = tempDirectory.resolve(entry.getName()).normalize();\n if (!destinationPath.startsWith(tempDirectory)) {\n throw new IOException(String.format(\"JAR...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_206
{ "fields": [ { "declarator": "versionOption = new ImmutableVersionOption.Builder().setTag(\"1\").build()", "modifier": "private static final", "original_string": "private static final VersionOption versionOption = new ImmutableVersionOption.Builder().setTag(\"1\").build();", "type": "Vers...
{ "body": "@Test(expected = IllegalArgumentException.class)\n public void testValidateOptionsMultipleCreate() {\n KVStoreOptionUtility.validateOptions(new KVStore.PutOption[]{createOption, createOption});\n }", "class_method_signature": "KVStoreOptionUtilityTest.testValidateOptionsMultipleCreate()", "constru...
{ "fields": [], "file": "services/datastore/src/main/java/com/dremio/datastore/api/options/KVStoreOptionUtility.java", "identifier": "KVStoreOptionUtility", "interfaces": "", "methods": [ { "class_method_signature": "KVStoreOptionUtility.validateOptions(KVStore.KVStoreOption... options)", "con...
{ "body": "public static void validateOptions(KVStore.KVStoreOption... options) {\n if (null == options || options.length <= 1) {\n return;\n }\n\n boolean foundVersion = false;\n boolean foundCreate = false;\n\n for (KVStore.KVStoreOption option : options) {\n if (option == KVStore.PutOption...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_656
{ "fields": [ { "declarator": "REMOTE_ENDPOINT_1 = newNodeEndpoint(\"10.0.0.2\", 1234)", "modifier": "private static final", "original_string": "private static final NodeEndpoint REMOTE_ENDPOINT_1 = newNodeEndpoint(\"10.0.0.2\", 1234);", "type": "NodeEndpoint", "var_name": "REMOTE_EN...
{ "body": "@Test\n public void testGetFileStatusForValidDirectory() throws IOException {\n Path path = new Path(\"/foo/bar\");\n FileStatus status = fs.getFileStatus(path);\n assertEquals(new Path(\"pdfs:/foo/bar\"), status.getPath());\n assertTrue(status.isDirectory());\n assertEquals(69, status.getM...
{ "fields": [ { "declarator": "logger = org.slf4j.LoggerFactory.getLogger(PseudoDistributedFileSystem.class)", "modifier": "private static final", "original_string": "private static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(PseudoDistributedFileSystem.class);", "typ...
{ "body": "@Override\n public FileStatus getFileStatus(Path f) throws IOException {\n Path absolutePath = toAbsolutePath(f);\n checkPath(absolutePath);\n\n // if the path is not a remote file path\n if (!isRemoteFile(absolutePath)) {\n return new GetFileStatusTask(absolutePath).get();\n }\n\n ...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_621
{ "fields": [], "file": "plugins/s3/src/test/java/com/dremio/plugins/s3/store/TestS3FileSystem.java", "identifier": "TestS3FileSystem", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testVerifyCredentialsRetry() {\n PowerMockito.mockStatic(StsClient.class);\n StsClient mockedClient = mock(StsClient.class);\n StsClientBuilder mockedClientBuilder = mock(StsClientBuilder.class);\n when(mockedClientBuilder.credentialsProvider(any(AwsCredentialsProvider.clas...
{ "fields": [ { "declarator": "S3_PERMISSION_ERROR_MSG = \"Access was denied by S3\"", "modifier": "public static final", "original_string": "public static final String S3_PERMISSION_ERROR_MSG = \"Access was denied by S3\";", "type": "String", "var_name": "S3_PERMISSION_ERROR_MSG" ...
{ "body": "protected void verifyCredentials(Configuration conf) throws RuntimeException {\n AwsCredentialsProvider awsCredentialsProvider = getAsync2Provider(conf);\n final StsClientBuilder stsClientBuilder = StsClient.builder()\n // Note that AWS SDKv2 client will close the credentials provider if n...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_271
{ "fields": [], "file": "services/namespace/src/test/java/com/dremio/service/namespace/file/TestFileFormat.java", "identifier": "TestFileFormat", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testDefaultXlsFileFormatOptions() throws Exception {\n XlsFileConfig fileFormat = new XlsFileConfig();\n String tableOptions = fileFormat.toTableOptions();\n assertContains(\"type => 'excel'\", tableOptions);\n assertContains(\"extractHeader => false\", tableOptions);\n ...
{ "fields": [ { "declarator": "buffer = LinkedBuffer.allocate(512)", "modifier": "@JsonIgnore\n private final", "original_string": "@JsonIgnore\n private final LinkedBuffer buffer = LinkedBuffer.allocate(512);", "type": "LinkedBuffer", "var_name": "buffer" }, { "decla...
{ "body": "public String toTableOptions() throws IllegalArgumentException {\n final StringBuilder stringBuilder = new StringBuilder();\n switch (getFileType()) {\n case TEXT:\n case CSV:\n case TSV:\n case PSV:\n final TextFileConfig textFileConfig = (TextFileConfig)this;\n str...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_334
{ "fields": [], "file": "sabot/kernel/src/test/java/com/dremio/exec/planner/sql/handlers/commands/TestMetadataProviderConditions.java", "identifier": "TestMetadataProviderConditions", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testTableTypesEmptyList() {\n assertSame(MetadataProviderConditions.ALWAYS_TRUE,\n MetadataProviderConditions.getTableTypePredicate(Collections.emptyList()));\n }", "class_method_signature": "TestMetadataProviderConditions.testTableTypesEmptyList()", "constructor": false, ...
{ "fields": [ { "declarator": "ALWAYS_TRUE = x -> true", "modifier": "static final", "original_string": "static final Predicate<String> ALWAYS_TRUE = x -> true;", "type": "Predicate<String>", "var_name": "ALWAYS_TRUE" }, { "declarator": "SQL_LIKE_ANY_STRING_PATTERN = \"...
{ "body": "public static Predicate<String> getTableTypePredicate(List<String> tableTypeFilter) {\n return tableTypeFilter.isEmpty() ? ALWAYS_TRUE : ImmutableSet.copyOf(tableTypeFilter)::contains;\n }", "class_method_signature": "MetadataProviderConditions.getTableTypePredicate(List<String> tableTypeFilter)", ...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_158
{ "fields": [], "file": "services/jobtelemetry/server/src/test/java/com/dremio/service/jobtelemetry/server/TestProfileMerger.java", "identifier": "TestProfileMerger", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testMergeWithMultipleExecutorProfiles() {\n final CoordinationProtos.NodeEndpoint nodeEndPoint1 = CoordinationProtos.NodeEndpoint\n .newBuilder()\n .setAddress(\"190.190.0.66\")\n .build();\n final CoordinationProtos.NodeEndpoint nodeEndPoint2 = CoordinationProtos....
{ "fields": [ { "declarator": "planningProfile", "modifier": "private final", "original_string": "private final QueryProfile planningProfile;", "type": "QueryProfile", "var_name": "planningProfile" }, { "declarator": "tailProfile", "modifier": "private final", ...
{ "body": "static QueryProfile merge(QueryProfile planningProfile, QueryProfile tailProfile,\n Stream<ExecutorQueryProfile> executorProfiles) {\n\n return new ProfileMerger(planningProfile, tailProfile, executorProfiles).merge();\n }", "class_method_signature": "ProfileMerger.merge(QueryProfile planningProfi...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_85
{ "fields": [ { "declarator": "table = \"\\\"cp\\\".\\\"tpch/supplier.parquet\\\"\"", "modifier": "private static", "original_string": "private static String table = \"\\\"cp\\\".\\\"tpch/supplier.parquet\\\"\";", "type": "String", "var_name": "table" }, { "declarator":...
{ "body": "@Test\n public void testFieldsAs() {\n VirtualDatasetState ds = extract(\n getQueryFromSQL(\"select s_suppkey, s_address as mycol from \" + table));\n assertEquals(\n new VirtualDatasetState()\n .setFrom(from)\n .setColumnsList(asList(\n new Col...
{ "fields": [], "file": "dac/backend/src/main/java/com/dremio/dac/explore/QuerySemantics.java", "identifier": "QuerySemantics", "interfaces": "", "methods": [ { "class_method_signature": "QuerySemantics.QuerySemantics()", "constructor": true, "full_signature": "private QuerySemantics()"...
{ "body": "public static VirtualDatasetState extract(QueryMetadata metadata) {\n final com.dremio.service.jobs.metadata.proto.VirtualDatasetState pState = metadata.getState();\n final VirtualDatasetState state = new VirtualDatasetState();\n if (pState.hasFrom()) {\n state.setFrom(fromBuf(pState.getFrom(...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_508
{ "fields": [], "file": "common/src/test/java/com/dremio/common/utils/protos/TestHasherOutput.java", "identifier": "TestHasherOutput", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testNoInput() {\n HasherOutput subject = new HasherOutput();\n\n String result = subject.getHasher().hash().toString();\n Assert.assertEquals(\"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855\", result);\n }", "class_method_signature": "TestHasherOutput.tes...
{ "fields": [ { "declarator": "hasher", "modifier": "private final", "original_string": "private final Hasher hasher;", "type": "Hasher", "var_name": "hasher" } ], "file": "common/src/main/java/com/dremio/common/utils/protos/HasherOutput.java", "identifier": "HasherOutput",...
{ "body": "public Hasher getHasher() {\n return hasher;\n }", "class_method_signature": "HasherOutput.getHasher()", "constructor": false, "full_signature": "public Hasher getHasher()", "identifier": "getHasher", "invocations": [], "modifiers": "public", "parameters": "()", "return": "Hasher", "s...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_226
{ "fields": [ { "declarator": "versionOption = new ImmutableVersionOption.Builder().setTag(\"1\").build()", "modifier": "private static final", "original_string": "private static final VersionOption versionOption = new ImmutableVersionOption.Builder().setTag(\"1\").build();", "type": "Vers...
{ "body": "@Test\n public void testGetCreateOrVersionOptionSingleCreate() {\n // Act\n final Optional<KVStore.PutOption> ret = KVStoreOptionUtility.getCreateOrVersionOption(new KVStore.PutOption[]{createOption});\n\n // Assert\n assertEquals(createOption, ret.get());\n }", "class_method_signature": "K...
{ "fields": [], "file": "services/datastore/src/main/java/com/dremio/datastore/api/options/KVStoreOptionUtility.java", "identifier": "KVStoreOptionUtility", "interfaces": "", "methods": [ { "class_method_signature": "KVStoreOptionUtility.validateOptions(KVStore.KVStoreOption... options)", "con...
{ "body": "public static Optional<KVStore.PutOption> getCreateOrVersionOption(KVStore.KVStoreOption... options) {\n validateOptions(options);\n\n if (null == options || options.length == 0) {\n return Optional.empty();\n }\n\n for (KVStore.KVStoreOption option : options) {\n if (option == KVStor...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_676
{ "fields": [ { "declarator": "REMOTE_ENDPOINT_1 = newNodeEndpoint(\"10.0.0.2\", 1234)", "modifier": "private static final", "original_string": "private static final NodeEndpoint REMOTE_ENDPOINT_1 = newNodeEndpoint(\"10.0.0.2\", 1234);", "type": "NodeEndpoint", "var_name": "REMOTE_EN...
{ "body": "@Test\n public void testDeleteRoot() throws IOException {\n Path root = new Path(\"/\");\n try {\n fs.delete(root, false);\n fail(\"Expected delete call to throw an exception\");\n } catch (AccessControlException e) {\n // ok\n }\n }", "class_method_signature": "TestPseudoDis...
{ "fields": [ { "declarator": "logger = org.slf4j.LoggerFactory.getLogger(PseudoDistributedFileSystem.class)", "modifier": "private static final", "original_string": "private static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(PseudoDistributedFileSystem.class);", "typ...
{ "body": "@Override\n public boolean delete(Path f, boolean recursive) throws IOException {\n Path absolutePath = toAbsolutePath(f);\n checkPath(absolutePath);\n\n // Handle root\n if (absolutePath.isRoot()) {\n throw new AccessControlException(\"Cannot delete \" + f);\n }\n\n if (!isRemoteFi...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_699
{ "fields": [ { "declarator": "nativeLibPluginManager = new NativeLibPluginManager()", "modifier": "private final", "original_string": "private final NativeLibPluginManager nativeLibPluginManager = new NativeLibPluginManager();", "type": "NativeLibPluginManager", "var_name": "nativeL...
{ "body": "@Test\n public void testShouldReturnPluginRoot() {\n // Given\n properties.set(DremioConfig.PLUGINS_ROOT_PATH_PROPERTY, \"/tmp/plugins\");\n Path expectedPath = Paths.get(\"/tmp/plugins/connectors\");\n\n // when\n Path actualPath = nativeLibPluginManager.createPluginsRoot();\n\n // then...
{ "fields": [ { "declarator": "PLUGINS_PATH_DEV_MODE = \"../plugins\"", "modifier": "private static final", "original_string": "private static final String PLUGINS_PATH_DEV_MODE = \"../plugins\";", "type": "String", "var_name": "PLUGINS_PATH_DEV_MODE" } ], "file": "plugins/hi...
{ "body": "@Override\n protected Path createPluginsRoot() {\n final Path pluginsPath = this.isDevelopment() ? Paths.get(PLUGINS_PATH_DEV_MODE) :\n DremioConfig.getPluginsRootPath().resolve(\"connectors\");\n return pluginsPath;\n }", "class_method_signature": "NativeLibPluginManager.createPluginsRoot()...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_363
{ "fields": [ { "declarator": "bfTestAllocator", "modifier": "private", "original_string": "private BufferAllocator bfTestAllocator;", "type": "BufferAllocator", "var_name": "bfTestAllocator" }, { "declarator": "TEST_NAME = \"20ed4177-87c7-91cc-c869-82b1d90cd300:frag:1:...
{ "body": "@Test\n public void testSetup() {\n try (final BloomFilter bloomFilter = new BloomFilter(bfTestAllocator, TEST_NAME, 40)) {\n bloomFilter.setup();\n assertEquals(bloomFilter.getDataBuffer().capacity(), bloomFilter.getSizeInBytes());\n\n String expectedName = TEST_...
{ "fields": [ { "declarator": "logger = LoggerFactory.getLogger(BloomFilter.class)", "modifier": "private static", "original_string": "private static Logger logger = LoggerFactory.getLogger(BloomFilter.class);", "type": "Logger", "var_name": "logger" }, { "declarator": ...
{ "body": "public void setup() {\n checkNotNull(this.allocator, \"Setup not required for deserialized objects.\");\n\n this.dataBuffer = this.allocator.buffer(this.sizeInBytes + META_BYTES_CNT);\n setup(dataBuffer);\n\n // Unset bits explicitly. The sliced buffer might be previously used.\...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_733
{ "fields": [ { "declarator": "healthMonitorThread", "modifier": "private", "original_string": "private YarnContainerHealthMonitor.YarnContainerHealthMonitorThread healthMonitorThread;", "type": "YarnContainerHealthMonitor.YarnContainerHealthMonitorThread", "var_name": "healthMonitor...
{ "body": "@Test\n public void testUnhealthyContainer() throws Exception {\n String containerInfoJson = \"{\\\"container\\\":{\\\"state\\\":\\\"COMPLETE\\\",\\\"user\\\":\\\"root\\\"}}\";\n InputStream targetStream = new ByteArrayInputStream(containerInfoJson.getBytes());\n when(connection.getInputStream())...
{ "fields": [ { "declarator": "logger = org.slf4j.LoggerFactory.getLogger(YarnContainerHealthMonitor.class)", "modifier": "private static final", "original_string": "private static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(YarnContainerHealthMonitor.class);", "type"...
{ "body": "@Override\n public boolean isHealthy() {\n //TODO DX-20576: We are currently always returning true\n // In the future, this method should return the health of the container\n // as implemented in YarnContainerHealthMonitorThread#isContainerHealthy()\n return isHealthy;\n }", "class_method_s...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_7
{ "fields": [ { "declarator": "optionManager", "modifier": "private", "original_string": "private SystemOptionManager optionManager;", "type": "SystemOptionManager", "var_name": "optionManager" }, { "declarator": "kvStoreProvider", "modifier": "private", "or...
{ "body": "@Test\n public void testPre4x0Version() throws Exception {\n final Version version = new Version(\"3.9.0\", 3, 9, 0, 0, \"\");\n assertTrue(SetTableauDefaults.updateOptionsIfNeeded(version, () -> optionManager, true));\n assertTrue(optionManager.getOption(TableauResource.CLIENT_TOOLS_TABLEAU));\n...
{ "fields": [ { "declarator": "taskUUID = \"67780ff3-80e1-4d40-88f1-cb7139b5c3de\"", "modifier": "static final", "original_string": "static final String taskUUID = \"67780ff3-80e1-4d40-88f1-cb7139b5c3de\";", "type": "String", "var_name": "taskUUID" }, { "declarator": "V...
{ "body": "@VisibleForTesting\n static boolean updateOptionsIfNeeded(Version previousVersion, Supplier<SystemOptionManager> optionManagerSupplier,\n boolean isOptionManagerOpen) throws Exception {\n // We write a default only when upgrading from versions older than 4.6.0.\n ...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_660
{ "fields": [ { "declarator": "REMOTE_ENDPOINT_1 = newNodeEndpoint(\"10.0.0.2\", 1234)", "modifier": "private static final", "original_string": "private static final NodeEndpoint REMOTE_ENDPOINT_1 = newNodeEndpoint(\"10.0.0.2\", 1234);", "type": "NodeEndpoint", "var_name": "REMOTE_EN...
{ "body": "@Test\n public void testGetFileStatusWithLocalPath() throws IOException {\n try {\n Path path = new Path(\"/tmp/file\");\n @SuppressWarnings(\"unused\")\n FileStatus status = fs.getFileStatus(path);\n fail(\"Expected getFileStatus call to throw an exception\");\n } catch (IOExcep...
{ "fields": [ { "declarator": "logger = org.slf4j.LoggerFactory.getLogger(PseudoDistributedFileSystem.class)", "modifier": "private static final", "original_string": "private static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(PseudoDistributedFileSystem.class);", "typ...
{ "body": "@Override\n public FileStatus getFileStatus(Path f) throws IOException {\n Path absolutePath = toAbsolutePath(f);\n checkPath(absolutePath);\n\n // if the path is not a remote file path\n if (!isRemoteFile(absolutePath)) {\n return new GetFileStatusTask(absolutePath).get();\n }\n\n ...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_230
{ "fields": [ { "declarator": "versionOption = new ImmutableVersionOption.Builder().setTag(\"1\").build()", "modifier": "private static final", "original_string": "private static final VersionOption versionOption = new ImmutableVersionOption.Builder().setTag(\"1\").build();", "type": "Vers...
{ "body": "@Test(expected = IllegalArgumentException.class)\n public void testGetCreateOrVersionOptionPutOptionFoundAmongMany() {\n // Act\n KVStoreOptionUtility.getCreateOrVersionOption(new KVStore.PutOption[]{createOption, indexPutOption, versionOption});\n }", "class_method_signature": "KVStoreOptionUtil...
{ "fields": [], "file": "services/datastore/src/main/java/com/dremio/datastore/api/options/KVStoreOptionUtility.java", "identifier": "KVStoreOptionUtility", "interfaces": "", "methods": [ { "class_method_signature": "KVStoreOptionUtility.validateOptions(KVStore.KVStoreOption... options)", "con...
{ "body": "public static Optional<KVStore.PutOption> getCreateOrVersionOption(KVStore.KVStoreOption... options) {\n validateOptions(options);\n\n if (null == options || options.length == 0) {\n return Optional.empty();\n }\n\n for (KVStore.KVStoreOption option : options) {\n if (option == KVStor...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_725
{ "fields": [ { "declarator": "properties = new TemporarySystemProperties()", "modifier": "@Rule\n public final", "original_string": "@Rule\n public final TemporarySystemProperties properties = new TemporarySystemProperties();", "type": "TemporarySystemProperties", "var_name": "pro...
{ "body": "@Test\n public void testMemoryOnOffHeapRatio() throws Exception {\n assumeNonMaprProfile();\n\n YarnController controller = Mockito.mock(YarnController.class);\n YarnService yarnService = new YarnService(new TestListener(), controller, Mockito.mock(NodeProvider.class));\n Cluster cluster = new...
{ "fields": [ { "declarator": "logger = LoggerFactory.getLogger(YarnService.class)", "modifier": "private static final", "original_string": "private static final Logger logger = LoggerFactory.getLogger(YarnService.class);", "type": "Logger", "var_name": "logger" }, { "d...
{ "body": "@VisibleForTesting\n protected String updateYarnConfiguration(Cluster cluster, YarnConfiguration yarnConfiguration) {\n String rmAddress = null;\n // make sure we set defaults first - before we overwrite it with props from ClusterConfig\n setYarnDefaults(cluster, yarnConfiguration);\n List<Pro...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_375
{ "fields": [ { "declarator": "schema", "modifier": "private", "original_string": "private Schema schema;", "type": "Schema", "var_name": "schema" }, { "declarator": "folder = new TemporaryFolder()", "modifier": "@Rule\n public", "original_string": "@Rule\n...
{ "body": "@Test\n public void testBooleanSpec() throws Exception{\n String columnName = \"b\";\n Boolean expectedValue = true;\n PartitionSpec partitionSpec = PartitionSpec\n .builderFor(schema)\n .identity(columnName)\n .build();\n\n IcebergPartitionData icebergPartitionData = new Iceber...
{ "fields": [ { "declarator": "partitionType", "modifier": "private final", "original_string": "private final Types.StructType partitionType;", "type": "Types.StructType", "var_name": "partitionType" }, { "declarator": "size", "modifier": "private final", "o...
{ "body": "public void setBoolean(int position, Boolean value) {\n set(position, value);\n }", "class_method_signature": "IcebergPartitionData.setBoolean(int position, Boolean value)", "constructor": false, "full_signature": "public void setBoolean(int position, Boolean value)", "identifier": "setBoolean"...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_119
{ "fields": [ { "declarator": "USER_PATH = \"/user/\"", "modifier": "private static final", "original_string": "private static final String USER_PATH = \"/user/\";", "type": "String", "var_name": "USER_PATH" }, { "declarator": "password = \"foo12bar\"", "modifier"...
{ "body": "@Test\n public void testUpdateUser() {\n UserInfoRequest userInfo = new UserInfoRequest(createdUser.getUID().getId(), createdUser.getUserName(),\n \"a new firstName\", \" a new last name\", \"new_email@mail.com\", createdUser.getVersion(), null, null);\n\n User savedUser = expectSuccess(getBuil...
{ "fields": [ { "declarator": "logger = org.slf4j.LoggerFactory.getLogger(UserResource.class)", "modifier": "private static final", "original_string": "private static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(UserResource.class);", "type": "org.slf4j.Logger", ...
{ "body": "@RolesAllowed({\"admin\", \"user\"})\n @PUT\n @Path(\"/{id}\")\n public User updateUser(User user, @PathParam(\"id\") String id) throws UserNotFoundException, IOException,\n DACUnauthorizedException {\n if (Strings.isNullOrEmpty(id)) {\n throw new IllegalArgumentException(\"No user id provide...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_549
{ "fields": [ { "declarator": "NON_NULL_VALUE = 89723408957L", "modifier": "public static final", "original_string": "public static final long NON_NULL_VALUE = 89723408957L;", "type": "long", "var_name": "NON_NULL_VALUE" }, { "declarator": "DST_VALUE = 1558999993123L", ...
{ "body": "@Test(expected=NullPointerException.class)\n public void testNullCalendar() throws InvalidAccessException {\n accessor.getTimestamp(0, null);\n }", "class_method_signature": "TestTimeStampMilliAccessor.testNullCalendar()", "constructor": false, "full_signature": "@Test(expected=NullPointerExcept...
{ "fields": [ { "declarator": "TYPE = Types.optional(MinorType.TIMESTAMP)", "modifier": "private static final", "original_string": "private static final MajorType TYPE = Types.optional(MinorType.TIMESTAMP);", "type": "MajorType", "var_name": "TYPE" }, { "declarator": "d...
{ "body": "@Override\n public Timestamp getTimestamp(int index, Calendar calendar) {\n Preconditions.checkNotNull(calendar, \"Invalid calendar used when attempting to retrieve timestamp.\");\n return getTimestamp(index, calendar.getTimeZone());\n }", "class_method_signature": "TimeStampMilliAccessor.getTime...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_267
{ "fields": [], "file": "services/namespace/src/test/java/com/dremio/service/namespace/file/TestFileFormat.java", "identifier": "TestFileFormat", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testDefaultJsonFileFormatOptions() throws Exception {\n JsonFileConfig fileFormat = new JsonFileConfig();\n String tableOptions = fileFormat.toTableOptions();\n assertContains(\"type => 'json'\", tableOptions);\n }", "class_method_signature": "TestFileFormat.testDefaultJson...
{ "fields": [ { "declarator": "buffer = LinkedBuffer.allocate(512)", "modifier": "@JsonIgnore\n private final", "original_string": "@JsonIgnore\n private final LinkedBuffer buffer = LinkedBuffer.allocate(512);", "type": "LinkedBuffer", "var_name": "buffer" }, { "decla...
{ "body": "public String toTableOptions() throws IllegalArgumentException {\n final StringBuilder stringBuilder = new StringBuilder();\n switch (getFileType()) {\n case TEXT:\n case CSV:\n case TSV:\n case PSV:\n final TextFileConfig textFileConfig = (TextFileConfig)this;\n str...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_637
{ "fields": [ { "declarator": "TEST_RPC_TIMEOUT_MS = 100", "modifier": "private static final", "original_string": "private static final int TEST_RPC_TIMEOUT_MS = 100;", "type": "int", "var_name": "TEST_RPC_TIMEOUT_MS" }, { "declarator": "logger = org.slf4j.LoggerFactory...
{ "body": "@Test\n public void testGetFileStatusRoot() throws Exception {\n {\n DFS.FileStatus status = newFileStatus(1024L, true, 0, 4096L, 37L, 42L, 0755, \"root\", \"wheel\", \"/\");\n setupRPC(\n DFS.RpcType.GET_FILE_STATUS_REQUEST, DFS.GetFileStatusRequest.newBuilder().setPath(\"/\").build...
{ "fields": [ { "declarator": "logger = org.slf4j.LoggerFactory.getLogger(RemoteNodeFileSystem.class)", "modifier": "private static final", "original_string": "private static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(RemoteNodeFileSystem.class);", "type": "org.slf4j...
{ "body": "@Override\n public FileStatus getFileStatus(Path f) throws IOException {\n Path absolutePath = toAbsolutePath(f);\n checkPath(absolutePath);\n\n final GetFileStatusCommand command = new GetFileStatusCommand(absolutePath.toUri().getPath());\n runner.runCommand(command);\n\n RpcFuture<DFS.Get...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_322
{ "fields": [ { "declarator": "N1_EP1 = newNodeEndpoint(\"node1\", 30010)", "modifier": "private static final", "original_string": "private static final NodeEndpoint N1_EP1 = newNodeEndpoint(\"node1\", 30010);", "type": "NodeEndpoint", "var_name": "N1_EP1" }, { "declara...
{ "body": "@Test\n public void multiNodeCluster1() throws Exception {\n final Wrapper wrapper = newWrapper(200, 1, 20,\n ImmutableList.of(\n new EndpointAffinity(N1_EP1, 0.15, true, 50),\n new EndpointAffinity(N1_EP2, 0.15, true, 50),\n new EndpointAffinity(N2_EP1, 0.10, tr...
{ "fields": [ { "declarator": "logger = org.slf4j.LoggerFactory.getLogger(HardAffinityFragmentParallelizer.class)", "modifier": "private static final", "original_string": "private static final Logger logger = org.slf4j.LoggerFactory.getLogger(HardAffinityFragmentParallelizer.class);", "typ...
{ "body": "@Override\n public void parallelizeFragment(final Wrapper fragmentWrapper, final ParallelizationParameters parameters,\n final Collection<NodeEndpoint> activeEndpoints) throws PhysicalOperatorSetupException {\n\n final Stats stats = fragmentWrapper.getStats();\n final ParallelizationInfo pInfo ...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_288
{ "fields": [], "file": "services/telemetry-api/src/test/java/com/dremio/telemetry/api/config/TestIncludesExcludesFilter.java", "identifier": "TestIncludesExcludesFilter", "interfaces": "", "superclass": "extends DremioTest" }
{ "body": "@Test\n public void onlyExclude() {\n IncludesExcludesFilter f = new IncludesExcludesFilter(Arrays.asList(), Arrays.asList(\"a.*\"));\n assertFalse(f.matches(\"alpha\", null));\n assertTrue(f.matches(\"beta\", null));\n }", "class_method_signature": "TestIncludesExcludesFilter.onlyExclude()", ...
{ "fields": [ { "declarator": "includes", "modifier": "private final", "original_string": "private final List<Pattern> includes;", "type": "List<Pattern>", "var_name": "includes" }, { "declarator": "excludes", "modifier": "private final", "original_string": ...
{ "body": "@Override\n public boolean matches(String name, Metric metric) {\n if (includes.isEmpty() || matches(name, includes)) {\n return allowedViaExcludes(name);\n }\n return false;\n }", "class_method_signature": "IncludesExcludesFilter.matches(String name, Metric metric)", "constructor": fal...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_93
{ "fields": [ { "declarator": "server", "modifier": "private final", "original_string": "private final String server;", "type": "String", "var_name": "server" }, { "declarator": "expectedSchema", "modifier": "private final", "original_string": "private final...
{ "body": "@Test\n public void verifyDSRFile() {\n final PowerBIMessageBodyGenerator.DSRFile dsrFile =\n PowerBIMessageBodyGenerator.createDSRFile(server, datasetConfig);\n\n assertEquals(\"0.1\", dsrFile.getVersion());\n\n final PowerBIMessageBodyGenerator.Connection connection =\n dsrFile.getCon...
{ "fields": [ { "declarator": "OBJECT_MAPPER = new ObjectMapper()", "modifier": "private static final", "original_string": "private static final ObjectMapper OBJECT_MAPPER = new ObjectMapper();", "type": "ObjectMapper", "var_name": "OBJECT_MAPPER" } ], "file": "dac/backend/sr...
{ "body": "@VisibleForTesting\n static DSRFile createDSRFile(String hostname, DatasetConfig datasetConfig) {\n final DSRConnectionInfo connInfo = new DSRConnectionInfo();\n connInfo.server = hostname;\n final DatasetPath dataset = new DatasetPath(datasetConfig.getFullPathList());\n // PBI doesn't work ri...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_359
{ "fields": [], "file": "sabot/kernel/src/test/java/com/dremio/exec/util/RuntimeFilterProbeTargetTest.java", "identifier": "RuntimeFilterProbeTargetTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testNullRuntimeFilterInfoObj() {\n List<RuntimeFilterProbeTarget> probeTargets = RuntimeFilterProbeTarget.getProbeTargets(null);\n assertTrue(probeTargets.isEmpty());\n }", "class_method_signature": "RuntimeFilterProbeTargetTest.testNullRuntimeFilterInfoObj()", "...
{ "fields": [ { "declarator": "logger = LoggerFactory.getLogger(RuntimeFilterInfo.class)", "modifier": "private static final", "original_string": "private static final Logger logger = LoggerFactory.getLogger(RuntimeFilterInfo.class);", "type": "Logger", "var_name": "logger" }, ...
{ "body": "public static List<RuntimeFilterProbeTarget> getProbeTargets(RuntimeFilterInfo runtimeFilterInfo) {\n final List<RuntimeFilterProbeTarget> targets = new ArrayList<>();\n try {\n if (runtimeFilterInfo==null) {\n return targets;\n }\n\n for (Runti...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_709
{ "fields": [ { "declarator": "mockTempDir", "modifier": "private static", "original_string": "private static Path mockTempDir;", "type": "Path", "var_name": "mockTempDir" }, { "declarator": "mockNestedTempDir", "modifier": "private static", "original_string...
{ "body": "@Test(expected = IOException.class)\n public void validateZipDirectoryZipSlipTestNested() throws IOException {\n ZipEntry entry = new ZipEntry(\"../tmpDir/somedir/somefile\");\n NativeLibPluginClassLoader.validateZipDirectory(mockNestedTempDir, entry);\n }", "class_method_signature": "TestNativeL...
{ "fields": [ { "declarator": "logger = org.slf4j.LoggerFactory.getLogger(NativeLibPluginClassLoader.class)", "modifier": "private static final", "original_string": "private static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(NativeLibPluginClassLoader.class);", "type"...
{ "body": "@VisibleForTesting\n static void validateZipDirectory(Path tempDirectory, final ZipEntry entry) throws IOException {\n final Path destinationPath = tempDirectory.resolve(entry.getName()).normalize();\n if (!destinationPath.startsWith(tempDirectory)) {\n throw new IOException(String.format(\"JAR...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_565
{ "fields": [], "file": "client/jdbc/src/test/java/com/dremio/jdbc/impl/TypeConvertingSqlAccessorTest.java", "identifier": "TypeConvertingSqlAccessorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void test_getByte_on_SMALLINT_thatFits_getsIt()\n throws InvalidAccessException {\n final SqlAccessor uut =\n new TypeConvertingSqlAccessor( new SmallIntStubAccessor( (short) 127 ) );\n assertThat( uut.getByte( 0 ), equalTo( (byte) 127 ) );\n }", "class_method_signature...
{ "fields": [ { "declarator": "innerAccessor", "modifier": "private final", "original_string": "private final SqlAccessor innerAccessor;", "type": "SqlAccessor", "var_name": "innerAccessor" } ], "file": "client/jdbc/src/main/java/com/dremio/jdbc/impl/TypeConvertingSqlAccessor...
{ "body": "@Override\n public byte getByte( int rowOffset ) throws InvalidAccessException {\n final byte result;\n switch ( getType().getMinorType() ) {\n // 1. Regular type:\n case TINYINT:\n result = innerAccessor.getByte( rowOffset );\n break;\n\n // 2. Converted-from types:\n ...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_135
{ "fields": [], "file": "dac/backend/src/test/java/com/dremio/dac/server/admin/profile/TestSimpleDurationFormat.java", "identifier": "TestSimpleDurationFormat", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testFormatNanos() {\n assertEquals(\"123us\", SimpleDurationFormat.formatNanos(123456));\n assertEquals(\"456ns\", SimpleDurationFormat.formatNanos(456));\n assertEquals(\"825ms\", SimpleDurationFormat.formatNanos(825435267));\n assertEquals(\"1.825s\", SimpleDurationFormat...
{ "fields": [], "file": "dac/backend/src/main/java/com/dremio/dac/server/admin/profile/SimpleDurationFormat.java", "identifier": "SimpleDurationFormat", "interfaces": "", "methods": [ { "class_method_signature": "SimpleDurationFormat.format(long durationInMillis)", "constructor": false, ...
{ "body": "static String formatNanos(long durationInNanos) {\n\n if (durationInNanos < 1) {\n return \"0s\";\n }\n\n final long days = TimeUnit.NANOSECONDS.toDays(durationInNanos);\n final long hours = TimeUnit.NANOSECONDS.toHours(durationInNanos) - TimeUnit.DAYS.toHours(TimeUnit.NANOSECONDS.toDays(d...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_420
{ "fields": [ { "declarator": "som", "modifier": "private", "original_string": "private SystemOptionManager som;", "type": "SystemOptionManager", "var_name": "som" }, { "declarator": "kvStore", "modifier": "private", "original_string": "private LegacyKVStore...
{ "body": "@Test\n public void testDelete() {\n registerTestOption(OptionValue.Kind.LONG, \"added-option-0\", \"0\");\n registerTestOption(OptionValue.Kind.LONG, \"added-option-1\", \"1\");\n registerTestOption(OptionValue.Kind.STRING, \"not-added-option\", \"default-value\");\n\n OptionValue optionVa...
{ "fields": [ { "declarator": "logger = org.slf4j.LoggerFactory.getLogger(SystemOptionManager.class)", "modifier": "private static final", "original_string": "private static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(SystemOptionManager.class);", "type": "org.slf4j.L...
{ "body": "@Override\n public boolean deleteOption(final String rawName, OptionType type) {\n checkArgument(type == OptionType.SYSTEM, \"OptionType must be SYSTEM.\");\n final String name = rawName.toLowerCase(Locale.ROOT);\n optionValidatorListing.getValidator(name); // ensure option exists\n\n final Po...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_498
{ "fields": [], "file": "common/src/test/java/com/dremio/common/utils/protos/TestBlackListOutput.java", "identifier": "TestBlackListOutput", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void writeFloat() throws IOException {\n Output delegate = Mockito.mock(Output.class);\n BlackListOutput subject =\n new BlackListOutput(\n delegate,\n Collections.emptyMap(),\n new int[]{2}\n );\n\n subject.writeFloat(1, 9, false);\...
{ "fields": [ { "declarator": "EmptyArray = new int[0]", "modifier": "private static final", "original_string": "private static final int[] EmptyArray = new int[0];", "type": "int[]", "var_name": "EmptyArray" }, { "declarator": "delegate", "modifier": "private fin...
{ "body": "@Override\n public void writeFloat(int fieldNumber, float value, boolean repeated) throws IOException {\n if(isBlackListed(fieldNumber)){\n return;\n }\n delegate.writeFloat(fieldNumber, value, repeated);\n }", "class_method_signature": "BlackListOutput.writeFloat(int fieldNumber, float v...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_162
{ "fields": [], "file": "services/base-rpc/src/test/java/com/dremio/exec/rpc/TestReconnectingConnection.java", "identifier": "TestReconnectingConnection", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void ensureDirectFailureOnRpcException() {\n conn().runCommand(Cmd.expectFail());\n }", "class_method_signature": "TestReconnectingConnection.ensureDirectFailureOnRpcException()", "constructor": false, "full_signature": "@Test public void ensureDirectFailureOnRpcException()", "i...
{ "fields": [ { "declarator": "logger = org.slf4j.LoggerFactory.getLogger(this.getClass())", "modifier": "private final", "original_string": "private final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(this.getClass());", "type": "org.slf4j.Logger", "var_name": "logger"...
{ "body": "public <R extends MessageLite, C extends RpcCommand<R, CONNECTION_TYPE>> void runCommand(C cmd) {\n\n if (closed.get()) {\n cmd.connectionFailed(FailureType.CONNECTION, new IOException(\"Connection has been closed: \" + toString()));\n }\n\n ConnectionRunner r = new ConnectionRunner();\n\n ...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_532
{ "fields": [ { "declarator": "stringLocalValue = new LocalValue<>()", "modifier": "private static final", "original_string": "private static final LocalValue<String> stringLocalValue = new LocalValue<>();", "type": "LocalValue<String>", "var_name": "stringLocalValue" }, { ...
{ "body": "@Test\n public void testClear() {\n stringLocalValue.set(\"value1\");\n intLocalValue.set(1);\n\n stringLocalValue.clear();\n intLocalValue.clear();\n\n assertFalse(stringLocalValue.get().isPresent());\n assertFalse(intLocalValue.get().isPresent());\n }", "class_method_signature": "Te...
{ "fields": [ { "declarator": "VALUES = new ThreadLocal<>()", "modifier": "private static final", "original_string": "private static final ThreadLocal<LocalValuesImpl> VALUES = new ThreadLocal<>();", "type": "ThreadLocal<LocalValuesImpl>", "var_name": "VALUES" }, { "dec...
{ "body": "public void clear() {\n doSet(null);\n }", "class_method_signature": "LocalValue.clear()", "constructor": false, "full_signature": "public void clear()", "identifier": "clear", "invocations": [ "doSet" ], "modifiers": "public", "parameters": "()", "return": "void", "signature": ...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }
97518356_50
{ "fields": [ { "declarator": "recommender = new ReplaceRecommender()", "modifier": "private", "original_string": "private ReplaceRecommender recommender = new ReplaceRecommender();", "type": "ReplaceRecommender", "var_name": "recommender" } ], "file": "dac/backend/src/test/j...
{ "body": "@Test\n public void ruleSuggestionsSelectBeginningText() {\n // Select beginning text in cell\n Selection selection = new Selection(\"col\", \"There are 20 types of people\", 0, 5); // \"There\" is selected\n List<ReplacePatternRule> rules = recommender.getRules(selection, TEXT);\n assertEqual...
{ "fields": [ { "declarator": "logger = LoggerFactory.getLogger(ReplaceRecommender.class)", "modifier": "private static final", "original_string": "private static final Logger logger = LoggerFactory.getLogger(ReplaceRecommender.class);", "type": "Logger", "var_name": "logger" } ...
{ "body": "@Override\n public List<ReplacePatternRule> getRules(Selection selection, DataType selColType) {\n Preconditions.checkArgument(selColType == DataType.TEXT,\n \"Cards generation for Replace/Keeponly/Exclude transforms is supported only on TEXT type columns\");\n\n List<ReplacePatternRule> rule...
{ "created": null, "fork": null, "fork_count": 232, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 97518356, "size": 51402, "stargazer_count": 737, "stars": null, "updates": null, "url": "https://github.com/dremio/dremio-oss" }