id
stringlengths
7
14
test_class
dict
test_case
dict
focal_class
dict
focal_method
dict
repository
dict
97518356_477
{ "fields": [ { "declarator": "OLD_SCHEMA =\n \"{\\n\" +\n \" \\\"fields\\\" : [ {\\n\" +\n \" \\\"name\\\" : \\\"R_REGIONKEY\\\",\\n\" +\n \" \\\"nullable\\\" : true,\\n\" +\n \" \\\"type\\\" : {\\n\" +\n \" \\\"name\\\" : \\\"int\\\",\\n\" +\n \" \\\"bi...
{ "body": "@Test\n public void testBackwardCompatofSchema() throws Exception {\n Schema schema = DremioArrowSchema.fromJSON(OLD_SCHEMA);\n // should not fail with serialization exception\n\n String newJson = schema.toJson();\n\n assertFalse(newJson.contains(\"typeLayout\"));\n }", "class_method_signat...
{ "fields": [ { "declarator": "mapper = new ObjectMapper()", "modifier": "private static final", "original_string": "private static final ObjectMapper mapper = new ObjectMapper();", "type": "ObjectMapper", "var_name": "mapper" }, { "declarator": "module = new SimpleModu...
{ "body": "public static Schema fromJSON(String json) throws IOException {\n return mapper.readValue(checkNotNull(json), Schema.class);\n }", "class_method_signature": "BackwardCompatibleSchemaDe.fromJSON(String json)", "constructor": false, "full_signature": "public static Schema fromJSON(String json)", ...
{ "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_318
{ "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 simpleCase1() throws Exception {\n final Wrapper wrapper = newWrapper(200, 1, 20, Collections.singletonList(new EndpointAffinity(N1_EP1, 1.0, true, 50)));\n INSTANCE.parallelizeFragment(wrapper, newParameters(SLICE_TARGET_DEFAULT, 5, 20), null);\n\n // Expect the fragment para...
{ "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_524
{ "fields": [], "file": "common/src/test/java/com/dremio/common/utils/TestPathUtils.java", "identifier": "TestPathUtils", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void toDottedPathWithInvalidPrefix() throws Exception {\n try {\n PathUtils.toDottedPath(Path.of(\"/p/q/\"), Path.of(\"/a/b/c/d/e.json\"));\n fail(\"constructing relative path of child /a/b/c/d/e.json with parent /p/q should fail\");\n } catch (IOException e) {\n }\n }",...
{ "fields": [ { "declarator": "logger = org.slf4j.LoggerFactory.getLogger(PathUtils.class)", "modifier": "private static final", "original_string": "private static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(PathUtils.class);", "type": "org.slf4j.Logger", "var_n...
{ "body": "public static String toDottedPath(Path fsPath) {\n return constructFullPath(toPathComponents(fsPath));\n }", "class_method_signature": "PathUtils.toDottedPath(Path fsPath)", "constructor": false, "full_signature": "public static String toDottedPath(Path fsPath)", "identifier": "toDottedPath", ...
{ "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_174
{ "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 testEqualsReturnsFalseLeftNull() {\n assertFalse(KeyUtils.equals(null, Boolean.TRUE));\n }", "class_method_signature": "KeyUtilsTest.testEqualsReturnsFalseLeftNull()", "constructor": false, "full_signature": "@Test public void testEqualsReturnsFalseLeftNull()", "identifier"...
{ "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_461
{ "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 initialize() {\n DremioConfig config = DremioConfig.create();\n }", "class_method_signature": "TestDremioConfig.initialize()", "constructor": false, "full_signature": "@Test public void initialize()", "identifier": "initialize", "invocations": [ "create" ], "modif...
{ "fields": [ { "declarator": "logger = org.slf4j.LoggerFactory.getLogger(DremioConfig.class)", "modifier": "private static final", "original_string": "private static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(DremioConfig.class);", "type": "org.slf4j.Logger", ...
{ "body": "public static DremioConfig create() {\n return create(null);\n }", "class_method_signature": "DremioConfig.create()", "constructor": false, "full_signature": "public static DremioConfig create()", "identifier": "create", "invocations": [ "create" ], "modifiers": "public static", "pa...
{ "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_46
{ "fields": [ { "declarator": "recommender = new ExtractListRecommender()", "modifier": "private", "original_string": "private ExtractListRecommender recommender = new ExtractListRecommender();", "type": "ExtractListRecommender", "var_name": "recommender" }, { "declarat...
{ "body": "@Test\n public void testExtractListCardGen() throws Exception {\n {\n ExtractListRule rule = new ExtractRuleSingle(0).wrap();\n TransformRuleWrapper<ExtractListRule> wrapper = recommender.wrapRule(rule);\n\n assertEquals(\"\\\"tbl name\\\".foo[0] IS NOT NULL\", wrapper.getMatchFunctionEx...
{ "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 TransformRuleWrapper<ExtractListRule> wrapRule(ExtractListRule rule) {\n switch (rule.getType()) {\n case single:\n return new ExtractListSingleTransformRuleWrapper(rule);\n case multiple:\n return new ExtractListMultipleTransformRuleWrapper(rule);\n defa...
{ "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_123
{ "fields": [], "file": "dac/backend/src/test/java/com/dremio/dac/api/TestUserStats.java", "identifier": "TestUserStats", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testGetStatsByWeek() {\n UserStats.Builder statsBuilder = new UserStats.Builder();\n LocalDate now = LocalDate.now();\n\n // Should log only last 2 weeks. This should be ignored\n statsBuilder.addUserStat(toEpochMillis(now.minusWeeks(3)), \"UI\", \"testuser1\");\n\n // S...
{ "fields": [ { "declarator": "DREMIO_EDITION_FORMAT = \"dremio-%s-%s\"", "modifier": "private static", "original_string": "private static String DREMIO_EDITION_FORMAT = \"dremio-%s-%s\";", "type": "String", "var_name": "DREMIO_EDITION_FORMAT" }, { "declarator": "editio...
{ "body": "public List<Map<String, Object>> getUserStatsByWeek() {\n return userStatsByWeek;\n }", "class_method_signature": "UserStats.getUserStatsByWeek()", "constructor": false, "full_signature": "public List<Map<String, Object>> getUserStatsByWeek()", "identifier": "getUserStatsByWeek", "invocations...
{ "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_573
{ "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_DOUBLE_thatFits_getsIt()\n throws InvalidAccessException {\n final SqlAccessor uut =\n new TypeConvertingSqlAccessor( new DoubleStubAccessor( 127.0d ) );\n assertThat( uut.getByte( 0 ), equalTo( (byte) 127) );\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_11
{ "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 testPost4x0Version() throws Exception {\n final Version version = new Version(\"5.2.0\", 5, 2, 0, 0, \"\");\n assertFalse(SetTableauDefaults.updateOptionsIfNeeded(version, () -> optionManager, true));\n }", "class_method_signature": "TestSetTableauDefaults.testPost4x0Version()...
{ "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_436
{ "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 deleteUnavailableDatasetWithoutDefinition() throws Exception {\n NamespaceService ns = mock(NamespaceService.class);\n when(ns.getDataset(any()))\n .thenReturn(\n new DatasetConfig()\n .setTag(\"0\")\n .setFullPathList(ImmutableList...
{ "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_344
{ "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 testValidation() {\n List<SqlAdvisor.ValidateErrorInfo> validationErrors = sqlAnalyzer.validate(\"select * from\");\n assertEquals(1, validationErrors.size());\n assertEquals(10, validationErrors.get(0).getStartColumnNum());\n assertEquals(13, validationErrors.get(0).getEnd...
{ "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<SqlAdvisor.ValidateErrorInfo> validate(String sql) {\n SqlAdvisor sqlAdvisor = new SqlAdvisor(validator);\n return sqlAdvisor.validate(sql);\n }", "class_method_signature": "SQLAnalyzer.validate(String sql)", "constructor": false, "full_signature": "public List<SqlAdvisor.ValidateE...
{ "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_714
{ "fields": [ { "declarator": "logger = org.slf4j.LoggerFactory.getLogger(TestYarnController.class)", "modifier": "private static final", "original_string": "private static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(TestYarnController.class);", "type": "org.slf4j.Log...
{ "body": "@Test\n public void testYarnController() throws Exception {\n assumeNonMaprProfile();\n YarnController yarnController = new YarnController();\n YarnConfiguration yarnConfiguration = createYarnConfig(\"resource-manager\", \"hdfs://name-node:8020\");\n String jvmOptions = yarnController.prepareC...
{ "fields": [ { "declarator": "logger = org.slf4j.LoggerFactory.getLogger(YarnController.class)", "modifier": "private static final", "original_string": "private static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(YarnController.class);", "type": "org.slf4j.Logger", ...
{ "body": "public YarnController() {\n this(DremioConfig.create());\n }", "class_method_signature": "YarnController.YarnController()", "constructor": true, "full_signature": "public YarnController()", "identifier": "YarnController", "invocations": [], "modifiers": "public", "parameters": "()", "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_201
{ "fields": [ { "declarator": "parentSpan", "modifier": "private", "original_string": "private Span parentSpan;", "type": "Span", "var_name": "parentSpan" }, { "declarator": "parentScope", "modifier": "private", "original_string": "private Scope parentScope;...
{ "body": "@Test\n public void testTypedReturnMethod() {\n setupLegitParentSpan();\n\n when(delegate.get(\"myKey\")).thenReturn(new TestDocument(\"myKey\",\"yourValue\"));\n\n Document<String, String> ret = underTest.get(\"myKey\");\n\n assertEquals(\"yourValue\", ret.getValue());\n assertChildSpanMet...
{ "fields": [ { "declarator": "METHOD_TAG = \"method\"", "modifier": "public static final", "original_string": "public static final String METHOD_TAG = \"method\";", "type": "String", "var_name": "METHOD_TAG" }, { "declarator": "TABLE_TAG = \"table\"", "modifier":...
{ "body": "@Override\n public Document<K, V> get(K key, GetOption... options) {\n return trace(\"get\", () -> delegate.get(key, options));\n }", "class_method_signature": "TracingKVStore.get(K key, GetOption... options)", "constructor": false, "full_signature": "@Override public Document<K, V> get(K key, G...
{ "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_651
{ "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 testRenameWithButNotRenamed() throws Exception {\n setupRPC(\n DFS.RpcType.RENAME_REQUEST, DFS.RenameRequest.newBuilder().setOldpath(\"/foo/bar\").setNewpath(\"/foo/bar2\").build(),\n DFS.RpcType.RENAME_RESPONSE, DFS.RenameResponse.newBuilder().setValue(false).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 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 final RenameCommand command = new RenameCommand(absoluteSrc.toUri().getPath(...
{ "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_578
{ "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_getShort_on_INTEGER_thatOverflows_throws()\n throws InvalidAccessException {\n final SqlAccessor uut =\n new TypeConvertingSqlAccessor( new IntegerStubAccessor( -32769 ) );\n try {\n uut.getShort( 0 );\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 short getShort( int rowOffset ) throws InvalidAccessException {\n final short result;\n switch ( getType().getMinorType() ) {\n // 1. Regular type:\n case SMALLINT:\n result = innerAccessor.getShort( rowOffset );\n break;\n\n // 2. Converted-from types...
{ "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_128
{ "fields": [ { "declarator": "testData", "modifier": "private final", "original_string": "private final TestData testData;", "type": "TestData", "var_name": "testData" } ], "file": "dac/backend/src/test/java/com/dremio/dac/server/TestJSONJobDataFilter.java", "identifier": ...
{ "body": "@Test\n public void testJSONGeneratorUntouched() throws IOException {\n JSONJobDataFilter filter = new JSONJobDataFilter();\n ContainerRequestBuilder request = ContainerRequestBuilder.from(\"http://localhost/foo/bar\", \"GET\", null);\n if (testData.getHeaderKey() != null) {\n request.header...
{ "fields": [], "file": "dac/backend/src/main/java/com/dremio/dac/server/JSONJobDataFilter.java", "identifier": "JSONJobDataFilter", "interfaces": "implements ContainerResponseFilter", "methods": [ { "class_method_signature": "JSONJobDataFilter.filter(ContainerRequestContext requestContext, Containe...
{ "body": "@Override\n public void filter(ContainerRequestContext requestContext, ContainerResponseContext responseContext)\n throws IOException {\n\n if (!APPLICATION_JSON_TYPE.equals(responseContext.getMediaType())\n || !WebServer.X_DREMIO_JOB_DATA_NUMBERS_AS_STRINGS_SUPPORTED_VALUE\n .equals(req...
{ "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_597
{ "fields": [], "file": "client/jdbc/src/test/java/com/dremio/jdbc/impl/TypeConvertingSqlAccessorTest.java", "identifier": "TypeConvertingSqlAccessorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void test_getLong_on_BIGINT_getsIt() throws InvalidAccessException {\n final SqlAccessor uut =\n new TypeConvertingSqlAccessor( new BigIntStubAccessor( 2147483648L ) );\n assertThat( uut.getLong( 0 ), equalTo( 2147483648L ) );\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 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_313
{ "fields": [], "file": "sabot/kernel/src/test/java/com/dremio/exec/rpc/TestRpcCompatibilityEncoder.java", "identifier": "TestRpcCompatibilityEncoder", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testUpdateErrorType() throws Exception {\n RpcCompatibilityEncoder encoder = new RpcCompatibilityEncoder();\n ChannelHandlerContext context = mock(ChannelHandlerContext.class);\n\n DremioPBError error = DremioPBError.newBuilder()\n .setErrorType(ErrorType.IO_EXCEPTION)\...
{ "fields": [], "file": "sabot/kernel/src/main/java/com/dremio/exec/rpc/RpcCompatibilityEncoder.java", "identifier": "RpcCompatibilityEncoder", "interfaces": "", "methods": [ { "class_method_signature": "RpcCompatibilityEncoder.encode(ChannelHandlerContext context, OutboundRpcMessage message, List<O...
{ "body": "@Override\n protected void encode(ChannelHandlerContext context, OutboundRpcMessage message, List<Object> out) throws Exception {\n if (message.mode != RpcMode.RESPONSE_FAILURE) {\n out.add(message);\n return;\n }\n\n final MessageLite pBody = message.pBody;\n if (!(pBody instanceof ...
{ "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_606
{ "fields": [], "file": "client/jdbc/src/test/java/com/dremio/jdbc/impl/TypeConvertingSqlAccessorTest.java", "identifier": "TypeConvertingSqlAccessorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void test_getDouble_on_DOUBLE_getsIt() throws InvalidAccessException {\n final SqlAccessor uut1 =\n new TypeConvertingSqlAccessor( new DoubleStubAccessor( -1e100 ) );\n assertThat( uut1.getDouble( 0 ), equalTo( -1e100 ) );\n final SqlAccessor uut2 =\n new TypeConvert...
{ "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 double getDouble( int rowOffset ) throws InvalidAccessException {\n final double result;\n switch ( getType().getMinorType() ) {\n // 1. Regular type:\n case FLOAT8:\n result = innerAccessor.getDouble( rowOffset );\n break;\n\n // 2. Converted-from typ...
{ "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_256
{ "fields": [], "file": "services/namespace/src/test/java/com/dremio/service/namespace/file/TestFileFormat.java", "identifier": "TestFileFormat", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testDefaultTextFileFormatOptions() throws Exception {\n TextFileConfig fileFormat = new TextFileConfig();\n String tableOptions = fileFormat.toTableOptions();\n assertContains(\"type => 'text'\", tableOptions);\n assertContains(\"fieldDelimiter => ','\", 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_485
{ "fields": [ { "declarator": "TEST_WORK_NAME = \"span-test-work\"", "modifier": "private static", "original_string": "private static String TEST_WORK_NAME = \"span-test-work\";", "type": "String", "var_name": "TEST_WORK_NAME" }, { "declarator": "tracer = new MockTracer...
{ "body": "@Test\n public void testContextWithCallable() throws Exception {\n final String testUser = \"testUser1\";\n\n Callable<String> callable = () -> RequestContext.current().get(UserContext.CTX_KEY).serialize();\n Future<String> future = RequestContext.empty()\n .with(UserContext.CTX_KEY, new Use...
{ "fields": [ { "declarator": "WORK_OPERATION_NAME = \"thread-pool-work\"", "modifier": "public static final", "original_string": "public static final String WORK_OPERATION_NAME = \"thread-pool-work\";", "type": "String", "var_name": "WORK_OPERATION_NAME" }, { "declarat...
{ "body": "@Override\n public <T> Future<T> submit(Callable<T> task) {\n return delegate.submit(decorate(task));\n }", "class_method_signature": "ContextMigratingExecutorService.submit(Callable<T> task)", "constructor": false, "full_signature": "@Override public Future<T> submit(Callable<T> task)", "iden...
{ "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_190
{ "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 testToStringString() {\n assertEquals(\"[1, 2, 3, 4]\", KeyUtils.toString(\"[1, 2, 3, 4]\"));\n }", "class_method_signature": "KeyUtilsTest.testToStringString()", "constructor": false, "full_signature": "@Test public void testToStringString()", "identifier": "testToStringSt...
{ "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 String toString(Object key) {\n if (null == key) {\n return null;\n }\n\n return (key instanceof byte[] ? Arrays.toString((byte[]) key) : key.toString());\n }", "class_method_signature": "KeyUtils.toString(Object key)", "constructor": false, "full_signature": "public stat...
{ "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_305
{ "fields": [ { "declarator": "WORD_BITS = 64", "modifier": "private static final", "original_string": "private static final int WORD_BITS = 64;", "type": "int", "var_name": "WORD_BITS" } ], "file": "sabot/kernel/src/test/java/com/dremio/sabot/op/join/vhash/TestMatchBitSet.ja...
{ "body": "@Test\n public void specifiedBits() throws Exception {\n final int count = 256*1024 + 13;\n BitSet bitSet = new BitSet(count);\n try (MatchBitSet matchBitSet = new MatchBitSet(count, allocator)) {\n for (int i = 0; i < count; i += WORD_BITS) {\n if ((i / WORD_BITS) % 3 == 0) {\n ...
{ "fields": [ { "declarator": "LONG_TO_BITS_SHIFT = 6", "modifier": "private final static", "original_string": "private final static int LONG_TO_BITS_SHIFT = 6;", "type": "int", "var_name": "LONG_TO_BITS_SHIFT" }, { "declarator": "BIT_OFFSET_MUSK = (1 << LONG_TO_BITS_SH...
{ "body": "public void set(final int index) {\n final int wordNum = index >>> LONG_TO_BITS_SHIFT;\n final int bit = index & BIT_OFFSET_MUSK;\n final long bitMask = 1L << bit;\n\n final long wordAddr = bufferAddr + wordNum * BYTES_PER_WORD;\n PlatformDependent.putLong(wordAddr, PlatformDependent.getLong...
{ "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_240
{ "fields": [ { "declarator": "kvstore =\n LegacyKVStoreProviderAdapter.inMemory(DremioTest.CLASSPATH_SCAN_RESULT)", "modifier": "private static final", "original_string": "private static final LegacyKVStoreProvider kvstore =\n LegacyKVStoreProviderAdapter.inMemory(DremioTest.CLASSPATH...
{ "body": "@Test\n public void testLoadFromStore() throws Exception {\n final DependenciesStore dependenciesStore = Mockito.mock(DependenciesStore.class);\n\n final DependencyGraph graph = new DependencyGraph(dependenciesStore);\n\n // let's add some dependencies to the store\n // Map<Dependant, List<Par...
{ "fields": [ { "declarator": "logger = org.slf4j.LoggerFactory.getLogger(DependencyGraph.class)", "modifier": "protected static final", "original_string": "protected static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(DependencyGraph.class);", "type": "org.slf4j.Logge...
{ "body": "public synchronized void loadFromStore() {\n for (Map.Entry<ReflectionId, ReflectionDependencies> entry : dependenciesStore.getAll()) {\n final List<ReflectionDependencyEntry> dependencies = entry.getValue().getEntryList();\n if (dependencies == null || dependencies.isEmpty()) {\n conti...
{ "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_610
{ "fields": [ { "declarator": "ENDPOINT = \"endpoint\"", "modifier": "public static final", "original_string": "public static final String ENDPOINT = \"endpoint\";", "type": "String", "var_name": "ENDPOINT" }, { "declarator": "CLIEN_ID = \"clienId\"", "modifier": ...
{ "body": "@Test\n public void testAzureOauthCopy() {\n DremioFileSystem fileSystem = new DremioFileSystem();\n Configuration conf = new Configuration();\n conf.set(FS_AZURE_ACCOUNT_OAUTH_CLIENT_ENDPOINT, ENDPOINT);\n conf.set(FS_AZURE_ACCOUNT_OAUTH_CLIENT_ID, CLIEN_ID);\n conf.set(FS_AZURE_ACCOUNT_OA...
{ "fields": [ { "declarator": "FS_S3A_BUCKET = \"fs.s3a.bucket.\"", "modifier": "private static final", "original_string": "private static final String FS_S3A_BUCKET = \"fs.s3a.bucket.\";", "type": "String", "var_name": "FS_S3A_BUCKET" }, { "declarator": "FS_S3A_AWS_CRE...
{ "body": "void updateOAuthConfig(Configuration conf, String accountName, String accountNameWithoutSuffix) {\n final String CLIENT_ID = \"dremio.azure.clientId\";\n final String TOKEN_ENDPOINT = \"dremio.azure.tokenEndpoint\";\n final String CLIENT_SECRET = \"dremio.azure.clientSecret\";\n String refreshT...
{ "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_539
{ "fields": [ { "declarator": "NON_NULL_VALUE = 89683200000L", "modifier": "public static final", "original_string": "public static final long NON_NULL_VALUE = 89683200000L;", "type": "long", "var_name": "NON_NULL_VALUE" }, { "declarator": "DST_VALUE = 1558999993123L", ...
{ "body": "@Test\n public void testIsNull() throws Exception {\n assertNotNull(accessor.getObject(0));\n assertNotNull(accessor.getDate(0, PST_CALENDAR));\n assertNull(accessor.getObject(2));\n assertNull(accessor.getDate(2, PST_CALENDAR));\n }", "class_method_signature": "TestDateMilliAccessor.testIs...
{ "fields": [ { "declarator": "TYPE = Types.optional(MinorType.DATE)", "modifier": "private static final", "original_string": "private static final MajorType TYPE = Types.optional(MinorType.DATE);", "type": "MajorType", "var_name": "TYPE" }, { "declarator": "defaultTime...
{ "body": "@Override\n public boolean isNull(int index) {\n return ac.isNull(index);\n }", "class_method_signature": "DateMilliAccessor.isNull(int index)", "constructor": false, "full_signature": "@Override public boolean isNull(int index)", "identifier": "isNull", "invocations": [ "isNull" ], ...
{ "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_493
{ "fields": [], "file": "common/src/test/java/com/dremio/common/utils/protos/TestBlackListOutput.java", "identifier": "TestBlackListOutput", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void writeInt64() 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.writeInt64(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 writeInt64(int fieldNumber, long value, boolean repeated) throws IOException {\n if(isBlackListed(fieldNumber)){\n return;\n }\n delegate.writeInt64(fieldNumber, value, repeated);\n }", "class_method_signature": "BlackListOutput.writeInt64(int fieldNumber, long val...
{ "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_169
{ "fields": [ { "declarator": "logger = org.slf4j.LoggerFactory.getLogger(TestRpcException.class)", "modifier": "private static final", "original_string": "private static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(TestRpcException.class);", "type": "org.slf4j.Logger"...
{ "body": "@Test\n public void testNonRemoteException() throws Exception {\n RpcException e = new RpcException(\"Test message\", new Exception());\n RpcException.propagateIfPossible(e, Exception.class);\n }", "class_method_signature": "TestRpcException.testNonRemoteException()", "constructor": false, "f...
{ "fields": [ { "declarator": "serialVersionUID = -5964230316010502319L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -5964230316010502319L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "log...
{ "body": "public static <T extends Throwable> void propagateIfPossible(@Nullable RpcException e, Class<T> clazz) throws T {\n if (e == null) {\n return;\n }\n\n Throwable cause = e.getCause();\n if (!(cause instanceof UserRemoteException)) {\n return;\n }\n\n UserRemoteException ure = (Us...
{ "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_186
{ "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 testEqualsReturnsFalseWithProtoObjectsDifferentUUID() {\n assertFalse(KeyUtils.equals(\n new KeyPair<>(\n PROTOBUFF_ORIGINAL_STRING,\n UUID.randomUUID()),\n new KeyTriple<>(\n \"Some string\",\n PROTOBUFF_ORIGINAL_STRING,\n UUID.randomUUI...
{ "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_702
{ "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 validateZipDirectoryValidUpdirThenCorrectDir() throws IOException {\n ZipEntry entry = new ZipEntry(\"../tmpDir/somedir/somefile\");\n NativeLibPluginClassLoader.validateZipDirectory(mockTempDir, entry);\n NativeLibPluginClassLoader.validateZipDirectory(mockTempDirWithTrailing...
{ "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_352
{ "fields": [], "file": "sabot/kernel/src/test/java/com/dremio/exec/util/KeyFairSliceCalculatorTest.java", "identifier": "KeyFairSliceCalculatorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testUnderflowSize() {\n KeyFairSliceCalculator keyFairSliceCalculator = new KeyFairSliceCalculator(newHashMap(\"k1\", 4, \"k2\", 4, \"k3\", 4), 16);\n assertEquals(\"Invalid combined key size\", 13, keyFairSliceCalculator.getTotalSize());\n }", "class_method_signat...
{ "fields": [ { "declarator": "VALUE_COMPARATOR = comparingByValue()", "modifier": "private static final", "original_string": "private static final Comparator<Map.Entry<String, Integer>> VALUE_COMPARATOR = comparingByValue();", "type": "Comparator<Map.Entry<String, Integer>>", "var_n...
{ "body": "public int getTotalSize() {\n return totalSize;\n }", "class_method_signature": "KeyFairSliceCalculator.getTotalSize()", "constructor": false, "full_signature": "public int getTotalSize()", "identifier": "getTotalSize", "invocations": [], "modifiers": "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_647
{ "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 testMkdirsWithValidPath() throws Exception {\n setupRPC(\n DFS.RpcType.MKDIRS_REQUEST, DFS.MkdirsRequest.newBuilder().setPath(\"/foo/bar\").setPermission(0755).build(),\n DFS.RpcType.MKDIRS_RESPONSE, DFS.MkdirsResponse.newBuilder().setValue(true).build());\n\n FileS...
{ "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 boolean mkdirs(Path f, FsPermission permission) throws IOException {\n Path absolutePath = toAbsolutePath(f);\n checkPath(absolutePath);\n\n final MkdirsCommand command = new MkdirsCommand(\n absolutePath.toUri().getPath(),\n permission != null ? (int) permission....
{ "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_217
{ "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 testIndexPutOptionNotSupportedNull() {\n KVStoreOptionUtility.checkIndexPutOptionIsNotUsed();\n }", "class_method_signature": "KVStoreOptionUtilityTest.testIndexPutOptionNotSupportedNull()", "constructor": false, "full_signature": "@Test public void testIndexPutOptionNotSuppo...
{ "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 checkIndexPutOptionIsNotUsed(KVStore.KVStoreOption... options) {\n if (null == options || options.length == 0) {\n return;\n }\n\n for (KVStore.KVStoreOption option : options) {\n if (option instanceof IndexPutOption) {\n throw new IllegalArgumentException(\"Ind...
{ "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_581
{ "fields": [], "file": "client/jdbc/src/test/java/com/dremio/jdbc/impl/TypeConvertingSqlAccessorTest.java", "identifier": "TypeConvertingSqlAccessorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void test_getShort_on_FLOAT_thatFits_getsIt() throws InvalidAccessException {\n final SqlAccessor uut =\n new TypeConvertingSqlAccessor( new FloatStubAccessor( -32768f ) );\n assertThat( uut.getShort( 0 ), equalTo( (short) -32768 ) );\n }", "class_method_signature": "TypeCon...
{ "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 short getShort( int rowOffset ) throws InvalidAccessException {\n final short result;\n switch ( getType().getMinorType() ) {\n // 1. Regular type:\n case SMALLINT:\n result = innerAccessor.getShort( rowOffset );\n break;\n\n // 2. Converted-from types...
{ "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_283
{ "fields": [ { "declarator": "NAME = \"jmx-test-counter\"", "modifier": "private static final", "original_string": "private static final String NAME = \"jmx-test-counter\";", "type": "String", "var_name": "NAME" }, { "declarator": "OBJECT_NAME = \"metrics:name=\" + NAM...
{ "body": "@Test\n public void testConfigureAndStart() throws IOException, InterruptedException, MalformedObjectNameException {\n // Arrange\n final MetricRegistry metrics = new MetricRegistry();\n metrics.counter(NAME, () -> {\n Counter counter = new Counter();\n counter.inc(1234);\n return ...
{ "fields": [ { "declarator": "rateUnit", "modifier": "private final", "original_string": "private final TimeUnit rateUnit;", "type": "TimeUnit", "var_name": "rateUnit" }, { "declarator": "durationUnit", "modifier": "private final", "original_string": "priva...
{ "body": "@Override\n public void configureAndStart(String name, MetricRegistry registry, MetricFilter filter) {\n reporter = JmxReporter.forRegistry(registry).convertRatesTo(rateUnit).convertDurationsTo(durationUnit).filter(filter).build();\n reporter.start();\n }", "class_method_signature": "JmxConfigura...
{ "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_329
{ "fields": [ { "declarator": "typeFactory = SqlTypeFactoryImpl.INSTANCE", "modifier": "private final", "original_string": "private final RelDataTypeFactory typeFactory = SqlTypeFactoryImpl.INSTANCE;", "type": "RelDataTypeFactory", "var_name": "typeFactory" } ], "file": "sabo...
{ "body": "@Test\n public void testAreRowTypesEqualIgnoresNames() {\n final RelDataType type1 = typeFactory.createStructType(\n asList(\n typeFactory.createSqlType(SqlTypeName.INTEGER),\n typeFactory.createSqlType(SqlTypeName.BIGINT),\n typeFactory.createSqlType(SqlTypeName.FLOAT),\n ...
{ "fields": [ { "declarator": "logger = org.slf4j.LoggerFactory.getLogger(MaterializationExpander.class)", "modifier": "private static final", "original_string": "private static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(MaterializationExpander.class);", "type": "org...
{ "body": "@VisibleForTesting\n static boolean areRowTypesEqual(RelDataType rowType1, RelDataType rowType2) {\n if (rowType1 == rowType2) {\n return true;\n }\n\n if (rowType2.getFieldCount() != rowType1.getFieldCount()) {\n return false;\n }\n\n final List<RelDataTypeField> f1...
{ "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_77
{ "fields": [ { "declarator": "recommender = new ExtractRecommender()", "modifier": "private", "original_string": "private ExtractRecommender recommender = new ExtractRecommender();", "type": "ExtractRecommender", "var_name": "recommender" } ], "file": "dac/backend/src/test/j...
{ "body": "@Test\n public void emptySelection() {\n boolean exThrown = false;\n try {\n recommender.getRules(new Selection(\"col\", \"883 N Shoreline Blvd.\", 5, 0), TEXT);\n fail(\"not expected to reach here\");\n } catch (UserException e) {\n exThrown = true;\n assertEquals(\"text reco...
{ "fields": [ { "declarator": "logger = LoggerFactory.getLogger(ExtractRecommender.class)", "modifier": "private static final", "original_string": "private static final Logger logger = LoggerFactory.getLogger(ExtractRecommender.class);", "type": "Logger", "var_name": "logger" } ...
{ "body": "@Override\n public List<ExtractRule> getRules(Selection selection, DataType selColType) {\n checkArgument(selColType == DataType.TEXT, \"Extract text is supported only on TEXT type columns\");\n\n if (selection.getLength() <= 0) {\n throw UserException.validationError()\n .message(\"te...
{ "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_450
{ "fields": [ { "declarator": "instance =\n new DayOfWeekFromSundayDateTimeField(\n ISOChronology.getInstanceUTC(),\n ISOChronology.getInstanceUTC().days())", "modifier": "private static final", "original_string": "private static final DayOfWeekFromSundayDateTimeField inst...
{ "body": "@Test\n public void getAsTextFieldValue() {\n assertTrue(\"Sunday\".equalsIgnoreCase(instance.getAsText(1, Locale.getDefault())));\n assertTrue(\"Monday\".equalsIgnoreCase(instance.getAsText(2, Locale.getDefault())));\n assertTrue(\"Saturday\".equalsIgnoreCase(instance.getAsText(7, Locale.getDefa...
{ "fields": [ { "declarator": "serialVersionUID = 8020294841735395909L", "modifier": "@SuppressWarnings(\"unused\")\n private static final", "original_string": "@SuppressWarnings(\"unused\")\n private static final long serialVersionUID = 8020294841735395909L;", "type": "long", "var...
{ "body": "@Override\n public String getAsText(int fieldValue, Locale locale) {\n return chronology.dayOfWeek().getAsText(reverse(fieldValue), locale);\n }", "class_method_signature": "DayOfWeekFromSundayDateTimeField.getAsText(int fieldValue, Locale locale)", "constructor": false, "full_signature": "@Over...
{ "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_145
{ "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 testGetMetadataRetrievalTime() {\n Preconditions.checkNotNull(attemptsHelper.getMetadataRetrievalTime());\n assertTrue(1L == attemptsHelper.getMetadataRetrievalTime());\n }", "class_method_signature": "TestAttemptsHelper.testGetMetadataRetrievalTime()", "constructor": false,...
{ "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 getMetadataRetrievalTime() {\n return getDuration(State.METADATA_RETRIEVAL);\n }", "class_method_signature": "AttemptsHelper.getMetadataRetrievalTime()", "constructor": false, "full_signature": "public Long getMetadataRetrievalTime()", "identifier": "getMetadataRetrievalTime", "in...
{ "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_515
{ "fields": [ { "declarator": "smallData = new byte[]{0, 1, 2, 3, 0, 127}", "modifier": "private static final", "original_string": "private static final byte[] smallData = new byte[]{0, 1, 2, 3, 0, 127};", "type": "byte[]", "var_name": "smallData" }, { "declarator": "NE...
{ "body": "@Test\n public void testLiteralByteString() throws Exception {\n ByteString literal = ByteString.copyFrom(smallData);\n\n OptimisticByteOutput byteOutput = new OptimisticByteOutput(literal.size());\n UnsafeByteOperations.unsafeWriteTo(literal, byteOutput);\n\n byte[] array = (byte[]) FieldUtil...
{ "fields": [ { "declarator": "EMPTY = new byte[0]", "modifier": "private static final", "original_string": "private static final byte[] EMPTY = new byte[0];", "type": "byte[]", "var_name": "EMPTY" }, { "declarator": "payloadSize", "modifier": "private final", ...
{ "body": "public byte[] toByteArray() {\n if (payloadSize == 0) {\n return arrayReference != null ? arrayReference : EMPTY;\n }\n\n Preconditions.checkState(arrayOffset == payloadSize, \"Byte payload not fully received.\");\n return arrayReference;\n\n }", "class_method_signature": "OptimisticByt...
{ "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_98
{ "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 testCreateReflection() {\n Reflection newReflection = createReflection();\n\n Reflection response = expectSuccess(getBuilder(getPublicAPI(3).path(REFLECTIONS_PATH)).buildPost(Entity.entity(newReflection, JSON)), Reflection.class);\n\n assertEquals(response.getDatasetId(), newR...
{ "fields": [ { "declarator": "reflectionServiceHelper", "modifier": "private final", "original_string": "private final ReflectionServiceHelper reflectionServiceHelper;", "type": "ReflectionServiceHelper", "var_name": "reflectionServiceHelper" }, { "declarator": "catalo...
{ "body": "@POST\n public Reflection createReflection(Reflection reflection) {\n // TODO: handle exceptions\n ReflectionGoal newReflection = reflectionServiceHelper.createReflection(reflection.toReflectionGoal());\n\n String id = newReflection.getId().getId();\n\n return new Reflection(newReflection, ref...
{ "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_391
{ "fields": [ { "declarator": "thrown = ExpectedException.none()", "modifier": "@Rule\n public", "original_string": "@Rule\n public ExpectedException thrown = ExpectedException.none();", "type": "ExpectedException", "var_name": "thrown" } ], "file": "sabot/kernel/src/test/j...
{ "body": "@Test\n public void testNullUser() throws Exception {\n thrown.expect(IllegalArgumentException.class);\n ImpersonationUtil.createProxyUgi(null);\n }", "class_method_signature": "TestImpersonationUtil.testNullUser()", "constructor": false, "full_signature": "@Test public void testNullUser()", ...
{ "fields": [ { "declarator": "logger = org.slf4j.LoggerFactory.getLogger(ImpersonationUtil.class)", "modifier": "private static final", "original_string": "private static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(ImpersonationUtil.class);", "type": "org.slf4j.Logge...
{ "body": "public static UserGroupInformation createProxyUgi(String proxyUserName) {\n try {\n if (Strings.isNullOrEmpty(proxyUserName)) {\n throw new IllegalArgumentException(\"Invalid value for proxy user name\");\n }\n\n // If the request proxy user is same as process user name or same as ...
{ "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_684
{ "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 testRenameToRoot() throws IOException {\n Path root = new Path(\"/\");\n Path src = new Path(\"/foo/bar\");\n\n try {\n fs.rename(src, root);\n fail(\"Expected rename to throw an exception\");\n } catch(IOException e) {\n // ok\n }\n }", "class_method_s...
{ "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_407
{ "fields": [ { "declarator": "lpp", "modifier": "private static", "original_string": "private static LogicalPlanPersistence lpp;", "type": "LogicalPlanPersistence", "var_name": "lpp" }, { "declarator": "optionValidatorListing", "modifier": "private static", ...
{ "body": "@Test\n public void testGetNonDefaultOptions() throws Exception {\n OptionManager optionManager = OptionManagerWrapper.Builder.newBuilder()\n .withOptionValidatorProvider(optionValidatorListing)\n .withOptionManager(defaultOptionManager)\n .withOptionManager(systemOptionManager)\n ....
{ "fields": [ { "declarator": "optionManagers", "modifier": "private final", "original_string": "private final List<OptionManager> optionManagers;", "type": "List<OptionManager>", "var_name": "optionManagers" }, { "declarator": "optionValidatorListing", "modifier"...
{ "body": "@Override\n public OptionList getNonDefaultOptions() {\n final OptionList optionList = new OptionList();\n for (OptionManager optionManager : optionManagers) {\n OptionList nonDefaultOptions = optionManager.getNonDefaultOptions();\n optionList.merge(nonDefaultOptions);\n }\n return o...
{ "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_20
{ "fields": [], "file": "dac/daemon/src/test/java/com/dremio/dac/cmd/TestResetCatalogSearch.java", "identifier": "TestResetCatalogSearch", "interfaces": "", "superclass": "extends TestClean" }
{ "body": "@Test\n public void testResetCatalogSearchCommand() throws Exception {\n getCurrentDremioDaemon().close();\n ResetCatalogSearch.go(new String[] {});\n final Optional<LocalKVStoreProvider> providerOptional = CmdUtils.getKVStoreProvider(getDACConfig().getConfig());\n if (!providerOptional.isPres...
{ "fields": [], "file": "dac/daemon/src/main/java/com/dremio/dac/cmd/ResetCatalogSearch.java", "identifier": "ResetCatalogSearch", "interfaces": "", "methods": [ { "class_method_signature": "ResetCatalogSearch.parse(String[] args)", "constructor": false, "full_signature": "private static...
{ "body": "static void go(String[] args) throws Exception {\n final DACConfig dacConfig = DACConfig.newConfig();\n parse(args);\n\n if (!dacConfig.isMaster) {\n throw new UnsupportedOperationException(\"Reset catalog search should be run on master node\");\n }\n\n final Optional<LocalKVStoreProvid...
{ "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_542
{ "fields": [ { "declarator": "NON_NULL_VALUE = 89683200000L", "modifier": "public static final", "original_string": "public static final long NON_NULL_VALUE = 89683200000L;", "type": "long", "var_name": "NON_NULL_VALUE" }, { "declarator": "DST_VALUE = 1558999993123L", ...
{ "body": "@Test\n public void testGetDate() throws Exception {\n assertEquals(new Date(72, 10, 3), accessor.getDate(0, PST_CALENDAR));\n assertEquals(new Date(72, 10, 4), accessor.getDate(0, UTC_CALENDAR));\n\n assertEquals(new Date(119, 4, 27), accessor.getDate(1, PST_CALENDAR));\n assertEquals(new Dat...
{ "fields": [ { "declarator": "TYPE = Types.optional(MinorType.DATE)", "modifier": "private static final", "original_string": "private static final MajorType TYPE = Types.optional(MinorType.DATE);", "type": "MajorType", "var_name": "TYPE" }, { "declarator": "defaultTime...
{ "body": "@Override\n public Date getDate(int index, Calendar calendar) {\n Preconditions.checkNotNull(calendar, \"Invalid calendar used when attempting to retrieve date.\");\n return getDate(index, calendar.getTimeZone());\n }", "class_method_signature": "DateMilliAccessor.getDate(int index, Calendar cale...
{ "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_112
{ "fields": [], "file": "dac/backend/src/test/java/com/dremio/dac/api/TestUserStatsResource.java", "identifier": "TestUserStatsResource", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testActiveUserStats() {\n EditionProvider editionProvider = mock(EditionProvider.class);\n when(editionProvider.getEdition()).thenReturn(\"oss-test\");\n\n LocalDate now = LocalDate.now();\n\n List<JobSummary> testJobResults = new ArrayList<>();\n testJobResults.add(newJ...
{ "fields": [ { "declarator": "logger = LoggerFactory.getLogger(UserStatsResource.class)", "modifier": "private static final", "original_string": "private static final Logger logger = LoggerFactory.getLogger(UserStatsResource.class);", "type": "Logger", "var_name": "logger" }, ...
{ "body": "@GET\n public UserStats getActiveUserStats() {\n try {\n final UserStats.Builder activeUserStats = new UserStats.Builder();\n activeUserStats.setEdition(editionProvider.getEdition());\n\n final SearchJobsRequest request = SearchJobsRequest.newBuilder()\n .setFilterString(String.fo...
{ "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_387
{ "fields": [], "file": "sabot/kernel/src/test/java/com/dremio/exec/store/StoragePluginUtilsTest.java", "identifier": "StoragePluginUtilsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testGenerateSourceErrorMessage() {\n final String sourceName = \"test-source\";\n final String errorMessage = \"Failed to establish connection\";\n Assert.assertEquals(\"Source 'test-source' returned error 'Failed to establish connection'\",\n StoragePluginUtils.generateS...
{ "fields": [], "file": "sabot/kernel/src/main/java/com/dremio/exec/store/StoragePluginUtils.java", "identifier": "StoragePluginUtils", "interfaces": "", "methods": [ { "class_method_signature": "StoragePluginUtils.StoragePluginUtils()", "constructor": true, "full_signature": "private S...
{ "body": "public static String generateSourceErrorMessage(final String storagePluginName, String errorMessage) {\n return String.format(\"Source '%s' returned error '%s'\", storagePluginName, errorMessage);\n }", "class_method_signature": "StoragePluginUtils.generateSourceErrorMessage(final String storagePlugi...
{ "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_692
{ "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 testCanonicalizeRemoteFile() throws IOException {\n Path path = new Path(\"/foo/bar/10.0.0.2@file\");\n\n Path resolvedPath = fs.canonicalizePath(path);\n assertEquals(new Path(\"/foo/bar/10.0.0.2@file\"), resolvedPath);\n }", "class_method_signature": "TestPseudoDistribute...
{ "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_368
{ "fields": [ { "declarator": "allocator", "modifier": "protected", "original_string": "protected BufferAllocator allocator;", "type": "BufferAllocator", "var_name": "allocator" }, { "declarator": "allocatorRule = AllocatorRule.defaultAllocator()", "modifier": "@R...
{ "body": "@Test\n public void testCopyReplaceUtf8() throws Exception {\n testReplaceUtf8Helper(new byte[] {'g', 'o', 'o', 'd', 'v', 'a', 'l'}, (byte)'?', \"goodval\");\n testReplaceUtf8Helper(new byte[] {'b', 'a', 'd', (byte)0xff, 'v', 'a', 'l'}, (byte)'?', \"bad?val\");\n testReplaceUtf8Helper(new byte[]...
{ "fields": [], "file": "sabot/kernel/src/main/java/com/dremio/exec/expr/fn/impl/StringFunctionUtil.java", "identifier": "StringFunctionUtil", "interfaces": "", "methods": [ { "class_method_signature": "StringFunctionUtil.getUTF8CharLength(ByteBuf buffer, int start, int end, final FunctionErrorConte...
{ "body": "public static int copyReplaceUtf8(ByteBuf in, final int start, final int end, ByteBuf out, byte\n replacement) {\n int i = 0;\n while (start + i < end) {\n // Optimize for long runs of ASCII sequences\n byte b = in.getByte(start + i);\n if (b >= 0) {\n out.setByte(i, b);\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_36
{ "fields": [], "file": "dac/backend/src/test/java/com/dremio/dac/explore/TestJSONElementLocator.java", "identifier": "TestJSONElementLocator", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testParseJsonPath5() throws Exception {\n JsonPath p = JSONElementLocator.parsePath(\"value.a[0].b\");\n assertEquals(p.toString(), 3, p.size());\n assertEquals(new JsonPath(new ObjectJsonPathElement(\"a\"), new ArrayJsonPathElement(0), new ObjectJsonPathElement(\"b\")), p);\n...
{ "fields": [ { "declarator": "cellText", "modifier": "private final", "original_string": "private final String cellText;", "type": "String", "var_name": "cellText" }, { "declarator": "parser", "modifier": "private", "original_string": "private JsonParser pa...
{ "body": "public static JsonPath parsePath(String path) {\n if (path.startsWith(VALUE_PLACEHOLDER)) {\n return new JsonPath(path.substring(VALUE_PLACEHOLDER.length()));\n }\n throw new IllegalArgumentException(path + \" must start with 'value'\");\n }", "class_method_signature": "JSONElementLocator....
{ "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_411
{ "fields": [], "file": "sabot/kernel/src/test/java/com/dremio/exec/server/options/TestOptionValueProtoUtils.java", "identifier": "TestOptionValueProtoUtils", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testLongOptionToProto() {\n final OptionValue option = OptionValue.createLong(OptionValue.OptionType.SYSTEM, \"test.option\", 1234);\n final OptionValueProto optionProto = OptionValueProtoUtils.toOptionValueProto(option);\n assertTrue(verifyEquivalent(option, optionProto));\n ...
{ "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 OptionValueProto toOptionValueProto(OptionValue optionValue) {\n checkArgument(optionValue.getType() == OptionValue.OptionType.SYSTEM,\n String.format(\"Invalid OptionType. OptionType must be 'SYSTEM', was given '%s'\", optionValue.getType()));\n\n final OptionValue.Kind kind = opt...
{ "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_104
{ "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 testAddSource() throws Exception {\n SourceResource.SourceDeprecated newSource = new SourceResource.SourceDeprecated();\n newSource.setName(\"Foopy\");\n newSource.setType(\"NAS\");\n NASConf config = new NASConf();\n config.path = \"/\";\n newSource.setConfig(config)...
{ "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": "@POST\n @RolesAllowed({\"admin\"})\n public SourceDeprecated addSource(SourceDeprecated source) {\n try {\n SourceConfig newSourceConfig = sourceService.createSource(source.toSourceConfig());\n\n return fromSourceConfig(newSourceConfig);\n } catch (NamespaceException | ExecutionSetupExcep...
{ "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_554
{ "fields": [ { "declarator": "STATUS_SERVER_PROPERTY_NAME =\n ExecConstants.HTTP_ENABLE", "modifier": "private static final", "original_string": "private static final String STATUS_SERVER_PROPERTY_NAME =\n ExecConstants.HTTP_ENABLE;", "type": "String", "var_name": "STATUS_...
{ "body": "@Test\n public void test_connect_declinesNonDremioJdbcUrl()\n throws SQLException\n {\n assertThat( uut.connect( \"jdbc:somedb:whatever\", null ), nullValue() );\n }", "class_method_signature": "DriverTest.test_connect_declinesNonDremioJdbcUrl()", "constructor": false, "full_signature": "@...
{ "fields": [ { "declarator": "logger = org.slf4j.LoggerFactory.getLogger(Driver.class)", "modifier": "private static final", "original_string": "private static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(Driver.class);", "type": "org.slf4j.Logger", "var_name": ...
{ "body": "@Override\n public Connection connect( String url, Properties info ) throws SQLException {\n return impl.connect( url, info );\n }", "class_method_signature": "Driver.connect( String url, Properties info )", "constructor": false, "full_signature": "@Override public Connection connect( String url...
{ "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_295
{ "fields": [ { "declarator": "rpcConfig = RpcConfig.newBuilder().timeout(10).name(\"testing\").build()", "modifier": "", "original_string": "RpcConfig rpcConfig = RpcConfig.newBuilder().timeout(10).name(\"testing\").build();", "type": "RpcConfig", "var_name": "rpcConfig" }, ...
{ "body": "@Test\n public void testHandleCreatesSpansFromTracerWhenTracingEnabled() throws RpcException {\n setup(true);\n\n server.handle(connection, GET_SCHEMAS_VALUE, pBody, dBody, responseSender);\n\n verify(ingestor).feedWork(eq(connection), eq(GET_SCHEMAS_VALUE), eq(pBody), eq(dBody), captorSender.cap...
{ "fields": [ { "declarator": "CONNECTION_LOGGER = org.slf4j.LoggerFactory.getLogger(\"com.dremio.ConnectionLog\")", "modifier": "private static final", "original_string": "private static final org.slf4j.Logger CONNECTION_LOGGER = org.slf4j.LoggerFactory.getLogger(\"com.dremio.ConnectionLog\");"...
{ "body": "@Override\n protected Response handle(UserClientConnectionImpl connection, int rpcType, byte[] pBody, ByteBuf dBody)\n throws RpcException {\n // there are two #handle methods, since the other one is overridden, this is never invoked\n throw new IllegalStateException(\"UserRPCServer#handle must...
{ "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_446
{ "fields": [ { "declarator": "logger = org.slf4j.LoggerFactory.getLogger(TestCatalogServiceImpl.class)", "modifier": "private static final", "original_string": "private static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(TestCatalogServiceImpl.class);", "type": "org.s...
{ "body": "@Test\n public void refreshSourceNames() throws Exception {\n doMockDatasets(mockUpPlugin, mockDatasets);\n catalogService.refreshSource(mockUpKey, CatalogService.DEFAULT_METADATA_POLICY, CatalogServiceImpl.UpdateType.NAMES);\n\n assertEquals(5, Lists.newArrayList(namespaceService.getAllDatasets(...
{ "fields": [ { "declarator": "logger = org.slf4j.LoggerFactory.getLogger(CatalogServiceImpl.class)", "modifier": "private static final", "original_string": "private static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(CatalogServiceImpl.class);", "type": "org.slf4j.Log...
{ "body": "@VisibleForTesting\n public boolean refreshSource(NamespaceKey source, MetadataPolicy metadataPolicy, UpdateType updateType) throws NamespaceException {\n ManagedStoragePlugin plugin = getPlugins().get(source.getRoot());\n if (plugin == null){\n throw UserException.validationError().message(\"U...
{ "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_61
{ "fields": [ { "declarator": "recommender = new SplitRecommender()", "modifier": "private", "original_string": "private SplitRecommender recommender = new SplitRecommender();", "type": "SplitRecommender", "var_name": "recommender" } ], "file": "dac/backend/src/test/java/com/...
{ "body": "@Test\n public void ruleSuggestionsAlphabetCharsDelimiter() {\n // Select text containing alphabet characters as delimiter\n Selection selection = new Selection(\"col\", \"abbbabbabbaaa\", 1, 2); // \"bb\" is selected\n List<SplitRule> rules = recommender.getRules(selection, TEXT);\n assertEqu...
{ "fields": [ { "declarator": "logger = LoggerFactory.getLogger(SplitRecommender.class)", "modifier": "private static final", "original_string": "private static final Logger logger = LoggerFactory.getLogger(SplitRecommender.class);", "type": "Logger", "var_name": "logger" } ], ...
{ "body": "@Override\n public List<SplitRule> getRules(Selection selection, DataType selColType) {\n checkArgument(selColType == DataType.TEXT, \"Split is supported only on TEXT type columns\");\n\n List<SplitRule> rules = new ArrayList<>();\n String seltext = selection.getCellText().substring(selection.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_503
{ "fields": [], "file": "common/src/test/java/com/dremio/common/utils/protos/TestBlackListOutput.java", "identifier": "TestBlackListOutput", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void writeByteString() 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, ByteSt...
{ "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_153
{ "fields": [], "file": "services/jobtelemetry/server/src/test/java/com/dremio/service/jobtelemetry/server/TestMetricsCombiner.java", "identifier": "TestMetricsCombiner", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testCombine() {\n CoordExecRPC.QueryProgressMetrics metrics1 = CoordExecRPC.QueryProgressMetrics\n .newBuilder()\n .setRowsProcessed(100)\n .build();\n CoordExecRPC.QueryProgressMetrics metrics2 = CoordExecRPC.QueryProgressMetrics\n .newBuilder()\n .setRo...
{ "fields": [ { "declarator": "executorMetrics", "modifier": "private final", "original_string": "private final Stream<QueryProgressMetrics> executorMetrics;", "type": "Stream<QueryProgressMetrics>", "var_name": "executorMetrics" } ], "file": "services/jobtelemetry/server/src...
{ "body": "private QueryProgressMetrics combine() {\n long rowsProcessed =\n executorMetrics\n .mapToLong(QueryProgressMetrics::getRowsProcessed)\n .sum();\n\n return QueryProgressMetrics.newBuilder()\n .setRowsProcessed(rowsProcessed)\n .build();\n }", "class_method_signat...
{ "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_124
{ "fields": [], "file": "dac/backend/src/test/java/com/dremio/dac/api/TestUserStats.java", "identifier": "TestUserStats", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testGetStatsByMonth() {\n UserStats.Builder statsBuilder = new UserStats.Builder();\n LocalDate now = LocalDate.now();\n\n // Same user and same job type should be counted as one\n statsBuilder.addUserStat(toEpochMillis(now.minusMonths(1)), \"UI\", \"testuser1\");\n stat...
{ "fields": [ { "declarator": "DREMIO_EDITION_FORMAT = \"dremio-%s-%s\"", "modifier": "private static", "original_string": "private static String DREMIO_EDITION_FORMAT = \"dremio-%s-%s\";", "type": "String", "var_name": "DREMIO_EDITION_FORMAT" }, { "declarator": "editio...
{ "body": "public List<Map<String, Object>> getUserStatsByMonth() {\n return userStatsByMonth;\n }", "class_method_signature": "UserStats.getUserStatsByMonth()", "constructor": false, "full_signature": "public List<Map<String, Object>> getUserStatsByMonth()", "identifier": "getUserStatsByMonth", "invoca...
{ "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_574
{ "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_getByte_on_DOUBLE_thatOverflows_rejectsIt()\n throws InvalidAccessException {\n final SqlAccessor uut =\n new TypeConvertingSqlAccessor( new DoubleStubAccessor( -130 ) );\n try {\n uut.getByte( 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 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_16
{ "fields": [ { "declarator": "thrown = ExpectedException.none()", "modifier": "@Rule\n public", "original_string": "@Rule\n public ExpectedException thrown = ExpectedException.none();", "type": "ExpectedException", "var_name": "thrown" } ], "file": "dac/daemon/src/test/jav...
{ "body": "@Test\n public void detectLoopTest() throws Exception {\n // no dependencies\n UpgradeTask1 upgradeTask1 = new UpgradeTask1(ImmutableList.of());\n // depends on task 4\n UpgradeTask2 upgradeTask2 = new UpgradeTask2(ImmutableList.of(\"UpgradeTask4\"));\n // depends on 1 and 2\n UpgradeTas...
{ "fields": [ { "declarator": "uuidToTask = Maps.newHashMap()", "modifier": "private", "original_string": "private Map<String, UpgradeTask> uuidToTask = Maps.newHashMap();", "type": "Map<String, UpgradeTask>", "var_name": "uuidToTask" } ], "file": "dac/daemon/src/main/java/co...
{ "body": "public List<UpgradeTask> topologicalTasksSort() {\n List<String> resolved = Lists.newArrayList();\n\n for(UpgradeTask task : uuidToTask.values()) {\n visit(task, resolved, Lists.newArrayList());\n }\n\n List<UpgradeTask> resolvedTasks = Lists.newArrayList();\n for (String dep : resolved...
{ "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_431
{ "fields": [], "file": "sabot/kernel/src/test/java/com/dremio/exec/catalog/TestPermissionCheckCache.java", "identifier": "TestPermissionCheckCache", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void throwsProperly() throws Exception {\n final String username = \"throwsProperly\";\n final StoragePlugin plugin = mock(StoragePlugin.class);\n final SourceConfig sourceConfig = new SourceConfig();\n final PermissionCheckCache checks = new PermissionCheckCache(DirectProvider....
{ "fields": [ { "declarator": "logger = org.slf4j.LoggerFactory.getLogger(PermissionCheckCache.class)", "modifier": "private static final", "original_string": "private static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(PermissionCheckCache.class);", "type": "org.slf4j...
{ "body": "public boolean hasAccess(final String username, final NamespaceKey namespaceKey, final DatasetConfig config, final MetadataStatsCollector metadataStatsCollector, final SourceConfig sourceConfig) {\n final Stopwatch permissionCheck = Stopwatch.createStarted();\n\n // if we are unable to cache, go dire...
{ "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_718
{ "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 testDistroMapRDefaultsWithMaprRAStreams() 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\n prop...
{ "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_348
{ "fields": [ { "declarator": "traits = RelTraitSet.createEmpty().plus(Prel.PHYSICAL)", "modifier": "private static final", "original_string": "private static final RelTraitSet traits = RelTraitSet.createEmpty().plus(Prel.PHYSICAL);", "type": "RelTraitSet", "var_name": "traits" }...
{ "body": "@Test\n public void simpleSelectWithLargeLimitWithSoftScan() {\n Prel input =\n newScreen(\n newLimit(0, 200000,\n newProject(exprs(), rowType(),\n newUnionExchange(\n newLimit(0, 200000,\n newProject(...
{ "fields": [], "file": "sabot/kernel/src/main/java/com/dremio/exec/planner/physical/visitor/SimpleLimitExchangeRemover.java", "identifier": "SimpleLimitExchangeRemover", "interfaces": "", "methods": [ { "class_method_signature": "SimpleLimitExchangeRemover.apply(PlannerSettings settings, Prel input...
{ "body": "public static Prel apply(PlannerSettings settings, Prel input){\n if(!settings.isTrivialSingularOptimized() || settings.isLeafLimitsEnabled()) {\n return input;\n }\n\n if(input.accept(new Identifier(), false)){\n return input.accept(new AllExchangeRemover(), null);\n }\n return in...
{ "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_523
{ "fields": [], "file": "common/src/test/java/com/dremio/common/utils/TestPathUtils.java", "identifier": "TestPathUtils", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void toDottedPathWithCommonPrefix() throws Exception {\n assertEquals(\"d\", PathUtils.toDottedPath(Path.of(\"/a/b/c\"), Path.of(\"/a/b/c/d\")));\n assertEquals(\"b.c.d\", PathUtils.toDottedPath(Path.of(\"/a\"), Path.of(\"/a/b/c/d\")));\n assertEquals(\"a.b.c.d\", PathUtils.toDotte...
{ "fields": [ { "declarator": "logger = org.slf4j.LoggerFactory.getLogger(PathUtils.class)", "modifier": "private static final", "original_string": "private static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(PathUtils.class);", "type": "org.slf4j.Logger", "var_n...
{ "body": "public static String toDottedPath(Path fsPath) {\n return constructFullPath(toPathComponents(fsPath));\n }", "class_method_signature": "PathUtils.toDottedPath(Path fsPath)", "constructor": false, "full_signature": "public static String toDottedPath(Path fsPath)", "identifier": "toDottedPath", ...
{ "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_489
{ "fields": [], "file": "common/src/test/java/com/dremio/common/utils/protos/TestBlackListOutput.java", "identifier": "TestBlackListOutput", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void writeUInt32() 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.writeUInt32(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 writeUInt32(int fieldNumber, int value, boolean repeated) throws IOException {\n if(isBlackListed(fieldNumber)){\n return;\n }\n delegate.writeUInt32(fieldNumber, value, repeated);\n }", "class_method_signature": "BlackListOutput.writeUInt32(int fieldNumber, int va...
{ "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_173
{ "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 testEqualsReturnsFalseAllNull() {\n assertTrue(KeyUtils.equals(null, null));\n }", "class_method_signature": "KeyUtilsTest.testEqualsReturnsFalseAllNull()", "constructor": false, "full_signature": "@Test public void testEqualsReturnsFalseAllNull()", "identifier": "testEqual...
{ "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_466
{ "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 badProperty() {\n exception.expect(RuntimeException.class);\n exception.expectMessage(\"mistyped-property\");\n @SuppressWarnings(\"unused\")\n DremioConfig config = DremioConfig.create(getClass().getResource(\"/test-dremio2.conf\"));\n }", "class_method_signature": "Tes...
{ "fields": [ { "declarator": "logger = org.slf4j.LoggerFactory.getLogger(DremioConfig.class)", "modifier": "private static final", "original_string": "private static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(DremioConfig.class);", "type": "org.slf4j.Logger", ...
{ "body": "public static DremioConfig create() {\n return create(null);\n }", "class_method_signature": "DremioConfig.create()", "constructor": false, "full_signature": "public static DremioConfig create()", "identifier": "create", "invocations": [ "create" ], "modifiers": "public static", "pa...
{ "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_41
{ "fields": [], "file": "dac/backend/src/test/java/com/dremio/dac/explore/model/TestTransformBase.java", "identifier": "TestTransformBase", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testVisitor() {\n TransformBase transform = new TransformExtract(\"source\", \"new\", DatasetsUtil.pattern(\"\\\\d+\", 0, IndexType.INDEX), false);\n String name = transform.accept(new TransformVisitor<String>() {\n @Override\n public String visit(TransformLookup lookup...
{ "fields": [ { "declarator": "acceptor = new Acceptor<TransformBase, TransformVisitor<?>, Transform>(){}", "modifier": "public static final", "original_string": "public static final Acceptor<TransformBase, TransformVisitor<?>, Transform> acceptor = new Acceptor<TransformBase, TransformVisitor<?...
{ "body": "public final <T> T accept(TransformVisitor<T> visitor) throws VisitorException {\n return acceptor.accept(visitor, this);\n }", "class_method_signature": "TransformBase.accept(TransformVisitor<T> visitor)", "constructor": false, "full_signature": "public final T accept(TransformVisitor<T> visitor...
{ "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_165
{ "fields": [], "file": "services/base-rpc/src/test/java/com/dremio/exec/rpc/TestReconnectingConnection.java", "identifier": "TestReconnectingConnection", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void ensureSuccessThenAvailable() {\n TestReConnection c = conn(r -> r.connectionSucceeded(newRemoteConnection()));\n c.runCommand(Cmd.expectSucceed());\n c.runCommand(Cmd.expectAvailable());\n }", "class_method_signature": "TestReconnectingConnection.ensureSuccessThenAvailable(...
{ "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_535
{ "fields": [ { "declarator": "NON_NULL_VALUE = 58447234", "modifier": "public static final", "original_string": "public static final int NON_NULL_VALUE = 58447234;", "type": "int", "var_name": "NON_NULL_VALUE" }, { "declarator": "PST_CALENDAR = Calendar.getInstance(Tim...
{ "body": "@Test\n public void testIsNull() throws Exception {\n assertNotNull(accessor.getObject(0));\n assertNotNull(accessor.getTime(0, PST_CALENDAR));\n assertNull(accessor.getObject(1));\n assertNull(accessor.getTime(1, PST_CALENDAR));\n }", "class_method_signature": "TestTimeMilliAccessor.testIs...
{ "fields": [ { "declarator": "TYPE = Types.optional(MinorType.TIME)", "modifier": "private static final", "original_string": "private static final MajorType TYPE = Types.optional(MinorType.TIME);", "type": "MajorType", "var_name": "TYPE" }, { "declarator": "defaultTime...
{ "body": "@Override\n public boolean isNull(int index) {\n return ac.isNull(index);\n }", "class_method_signature": "TimeMilliAccessor.isNull(int index)", "constructor": false, "full_signature": "@Override public boolean isNull(int index)", "identifier": "isNull", "invocations": [ "isNull" ], ...
{ "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_57
{ "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 endsWith() throws Exception {\n final File dataFile = temp.newFile(\"endsWithTest.json\");\n try (final PrintWriter printWriter = new PrintWriter(dataFile)) {\n printWriter.append(\"{ \\\"col\\\" : \\\"amazing restaurant. Very good food\\\" }\");\n printWriter.append(\"...
{ "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": "public TransformRuleWrapper<ReplacePatternRule> wrapRule(ReplacePatternRule rule) {\n return new ReplaceTransformRuleWrapper(rule);\n }", "class_method_signature": "ReplaceRecommender.wrapRule(ReplacePatternRule rule)", "constructor": false, "full_signature": "public TransformRuleWrapper<ReplaceP...
{ "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_470
{ "fields": [ { "declarator": "allocatorRule = AllocatorRule.defaultAllocator()", "modifier": "@Rule\n public final", "original_string": "@Rule\n public final AllocatorRule allocatorRule = AllocatorRule.defaultAllocator();", "type": "AllocatorRule", "var_name": "allocatorRule" ...
{ "body": "@Test\n public void testWithFullNode() {\n try (\n BufferAllocator root = allocatorRule.newAllocator(\"test-memory-debug-info\", 0, 1024 * 1024);\n BufferAllocator child = root.newChildAllocator(\"child\", 0, 16 * 1024);\n BufferAllocator grandChild1 = child.newChildAllocator(\"gra...
{ "fields": [ { "declarator": "NUM_LEVELS_FROM_ROOT_TO_OPERATOR = 6", "modifier": "private static final", "original_string": "private static final int NUM_LEVELS_FROM_ROOT_TO_OPERATOR = 6;", "type": "int", "var_name": "NUM_LEVELS_FROM_ROOT_TO_OPERATOR" }, { "declarator"...
{ "body": "public static String getDetailsOnAllocationFailure(OutOfMemoryException exception, BufferAllocator allocator) {\n BufferAllocator failedAtAllocator = null;\n\n /*\n * Check if the exception has details about the outcome. This may not always be present\n * eg. if the failure is due to fragment...
{ "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_309
{ "fields": [ { "declarator": "RAND = new Random(2342983723452L)", "modifier": "private static final", "original_string": "private static final Random RAND = new Random(2342983723452L);", "type": "Random", "var_name": "RAND" } ], "file": "sabot/kernel/src/test/java/com/dremio...
{ "body": "@Test\n public void boolNullEveryOther() throws Exception {\n final int count = 1024;\n try (\n BitVector in = new BitVector(\"in\", allocator);\n BitVector out = new BitVector(\"out\", allocator);\n ) {\n\n in.allocateNew(count);\n ArrowBuf tempBuf = allocator.buffer(1024);\n...
{ "fields": [ { "declarator": "FOUR_BYTE = 4", "modifier": "private static final", "original_string": "private static final int FOUR_BYTE = 4;", "type": "int", "var_name": "FOUR_BYTE" }, { "declarator": "EIGHT_BYTE = 8", "modifier": "private static final", "...
{ "body": "public static int pivot(PivotDef pivot, int start, int count, FixedBlockVector fixedBlock, VariableBlockVector variable) {\n // We are constrained by the capacity of variable block vector and count.\n // First fill the variable width vectors to find how many records we can fit in.\n if (pivot.getV...
{ "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_562
{ "fields": [ { "declarator": "STATUS_SERVER_PROPERTY_NAME =\n ExecConstants.HTTP_ENABLE", "modifier": "private static final", "original_string": "private static final String STATUS_SERVER_PROPERTY_NAME =\n ExecConstants.HTTP_ENABLE;", "type": "String", "var_name": "STATUS_...
{ "body": "@Test\n public void test_acceptsURL_rejectsNonJdbcUrl()\n throws SQLException\n {\n assertThat( uut.acceptsURL(\"dremio:\"), equalTo( false ) );\n }", "class_method_signature": "DriverTest.test_acceptsURL_rejectsNonJdbcUrl()", "constructor": false, "full_signature": "@Test public void test...
{ "fields": [ { "declarator": "logger = org.slf4j.LoggerFactory.getLogger(Driver.class)", "modifier": "private static final", "original_string": "private static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(Driver.class);", "type": "org.slf4j.Logger", "var_name": ...
{ "body": "@Override\n public boolean acceptsURL( String url ) throws SQLException {\n return impl.acceptsURL( url );\n }", "class_method_signature": "Driver.acceptsURL( String url )", "constructor": false, "full_signature": "@Override public boolean acceptsURL( String url )", "identifier": "acceptsURL",...
{ "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_132
{ "fields": [], "file": "dac/backend/src/test/java/com/dremio/dac/server/admin/profile/TestHostProcessingRateUtil.java", "identifier": "TestHostProcessingRateUtil", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testComputeRecordProcRateAtPhaseHostLevel() {\n int major = 1;\n String hostname1 = \"hostname1\";\n String hostname2 = \"hostname2\";\n\n HostProcessingRate hpr1 = new HostProcessingRate(major, hostname1, BigInteger.valueOf(5),\n ...
{ "fields": [ { "declarator": "TOTAL_MAX_RECORDS = \"maxRecords\"", "modifier": "private static final", "original_string": "private static final String TOTAL_MAX_RECORDS = \"maxRecords\";", "type": "String", "var_name": "TOTAL_MAX_RECORDS" }, { "declarator": "TOTAL_PROC...
{ "body": "public static Set<HostProcessingRate> computeRecordProcRateAtPhaseHostLevel(int major, Set<HostProcessingRate> hostProcessingRateSet) {\n if (hostProcessingRateSet == null || hostProcessingRateSet.isEmpty()) {\n return new TreeSet<>();\n }\n Table<String, String, BigInteger> hostToColumnToVal...
{ "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_427
{ "fields": [ { "declarator": "optionManager", "modifier": "private", "original_string": "private OptionManager optionManager;", "type": "OptionManager", "var_name": "optionManager" }, { "declarator": "optionList", "modifier": "private", "original_string": "...
{ "body": "@Test\n public void testSetOption() {\n final OptionManager eagerCachingOptionManager = new EagerCachingOptionManager(optionManager);\n final OptionValue newOption = OptionValue.createBoolean(OptionValue.OptionType.SYSTEM, \"newOption\", true);\n eagerCachingOptionManager.setOption(newOption);\n ...
{ "fields": [ { "declarator": "delegate", "modifier": "private final", "original_string": "private final OptionManager delegate;", "type": "OptionManager", "var_name": "delegate" } ], "file": "sabot/kernel/src/main/java/com/dremio/exec/server/options/EagerCachingOptionManager...
{ "body": "@Override\n public boolean setOption(OptionValue value) {\n return super.setOption(value) && delegate.setOption(value);\n }", "class_method_signature": "EagerCachingOptionManager.setOption(OptionValue value)", "constructor": false, "full_signature": "@Override public boolean setOption(OptionValu...
{ "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_94
{ "fields": [ { "declarator": "folder = new TemporaryFolder()", "modifier": "@Rule\n public final", "original_string": "@Rule\n public final TemporaryFolder folder = new TemporaryFolder();", "type": "TemporaryFolder", "var_name": "folder" } ], "file": "dac/backend/src/test/...
{ "body": "@Test\n public void testAddSourceWithAccelerationTTL() throws Exception {\n final String sourceName = \"src\";\n final long refreshPeriod = TimeUnit.HOURS.toMillis(4);\n final long gracePeriod = TimeUnit.HOURS.toMillis(12);\n {\n final NASConf nas = new NASConf();\n nas.path = folder...
{ "fields": [ { "declarator": "executor", "modifier": "private final", "original_string": "private final QueryExecutor executor;", "type": "QueryExecutor", "var_name": "executor" }, { "declarator": "namespaceService", "modifier": "private final", "original_s...
{ "body": "@RolesAllowed(\"admin\")\n @DELETE\n @Produces(MediaType.APPLICATION_JSON)\n public void deleteSource(@QueryParam(\"version\") String version) throws NamespaceException, SourceNotFoundException {\n if (version == null) {\n throw new ClientErrorException(\"missing version parameter\");\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_519
{ "fields": [], "file": "common/src/test/java/com/dremio/common/utils/TestPathUtils.java", "identifier": "TestPathUtils", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testFSPathToSchemaPath() throws Exception {\n assertEquals(\"a.b.c\", PathUtils.toDottedPath(Path.of(\"/a/b/c\")));\n assertEquals(\"a.b.c\", PathUtils.toDottedPath(Path.of(\"a/b/c\")));\n assertEquals(\"a.b.\\\"c.json\\\"\", PathUtils.toDottedPath(Path.of(\"/a/b/c.json\")));\...
{ "fields": [ { "declarator": "logger = org.slf4j.LoggerFactory.getLogger(PathUtils.class)", "modifier": "private static final", "original_string": "private static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(PathUtils.class);", "type": "org.slf4j.Logger", "var_n...
{ "body": "public static String toDottedPath(Path fsPath) {\n return constructFullPath(toPathComponents(fsPath));\n }", "class_method_signature": "PathUtils.toDottedPath(Path fsPath)", "constructor": false, "full_signature": "public static String toDottedPath(Path fsPath)", "identifier": "toDottedPath", ...
{ "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_149
{ "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 testGetExecutionPlanningTime() {\n Preconditions.checkNotNull(attemptsHelper.getExecutionPlanningTime());\n assertTrue(1L == attemptsHelper.getExecutionPlanningTime());\n }", "class_method_signature": "TestAttemptsHelper.testGetExecutionPlanningTime()", "constructor": false,...
{ "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 getExecutionPlanningTime() {\n return getDuration(State.EXECUTION_PLANNING);\n }", "class_method_signature": "AttemptsHelper.getExecutionPlanningTime()", "constructor": false, "full_signature": "public Long getExecutionPlanningTime()", "identifier": "getExecutionPlanningTime", "in...
{ "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_260
{ "fields": [], "file": "services/namespace/src/test/java/com/dremio/service/namespace/file/TestFileFormat.java", "identifier": "TestFileFormat", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testEscapeTextFile() throws Exception {\n TextFileConfig fileFormat = new TextFileConfig();\n fileFormat.setEscape(\"\\\\\");\n String tableOptions = fileFormat.toTableOptions();\n assertContains(\"\\\"escape\\\" => '\\\\\", tableOptions);\n }", "class_method_signature":...
{ "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_630
{ "fields": [], "file": "plugins/azure/src/test/java/com/dremio/plugins/azure/utils/AsyncHttpClientProviderTest.java", "identifier": "AsyncHttpClientProviderTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testSameInstance() throws InterruptedException {\n ExecutorService ex = Executors.newFixedThreadPool(10);\n final Set<Integer> objectIdentities = new ConcurrentSkipListSet<>();\n CountDownLatch latch = new CountDownLatch(100);\n for (int i=0; i<100; i++) {...
{ "fields": [ { "declarator": "logger = LoggerFactory.getLogger(AsyncHttpClientProvider.class)", "modifier": "private static final", "original_string": "private static final Logger logger = LoggerFactory.getLogger(AsyncHttpClientProvider.class);", "type": "Logger", "var_name": "logge...
{ "body": "public static AsyncHttpClient getInstance(){\n return SingletonHelper.INSTANCE;\n }", "class_method_signature": "AsyncHttpClientProvider.getInstance()", "constructor": false, "full_signature": "public static AsyncHttpClient getInstance()", "identifier": "getInstance", "invocations": [],...
{ "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_325
{ "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 multiNodeClusterNegative2() throws Exception {\n final Wrapper wrapper = newWrapper(200, 1, 3,\n ImmutableList.of(\n new EndpointAffinity(N1_EP2, 0.15, true, 50),\n new EndpointAffinity(N2_EP2, 0.15, true, 50),\n new EndpointAffinity(N3_EP1, 0...
{ "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_667
{ "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 testOpenRoot() throws IOException {\n Path root = new Path(\"/\");\n try {\n fs.open(root);\n fail(\"Expected open call to throw an exception\");\n } catch (AccessControlException e) {\n // ok\n }\n }", "class_method_signature": "TestPseudoDistributedFileS...
{ "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 FSDataInputStream open(Path f, int bufferSize) throws IOException {\n Path absolutePath = toAbsolutePath(f);\n checkPath(absolutePath);\n\n // Handle root\n if (absolutePath.isRoot()) {\n throw new AccessControlException(\"Cannot open \" + f);\n }\n\n try {\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_237
{ "fields": [], "file": "services/accelerator/src/test/java/com/dremio/service/reflection/TestReflectionManager.java", "identifier": "TestReflectionManager", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void handleGoalWithEntryButHashHasChanged(){\n ReflectionId reflectionId = new ReflectionId(\"r_id\");\n ReflectionGoalHash reflectionGoalHash = new ReflectionGoalHash(\"MY_HASH\");\n String reflectionGoalName = \"name\";\n String goalTag = \"goalTag\";\n String dataSetId = \...
{ "fields": [ { "declarator": "logger = org.slf4j.LoggerFactory.getLogger(ReflectionManager.class)", "modifier": "private static final", "original_string": "private static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(ReflectionManager.class);", "type": "org.slf4j.Logge...
{ "body": "@VisibleForTesting\n void handleGoal(ReflectionGoal goal) {\n final ReflectionEntry entry = reflectionStore.get(goal.getId());\n if (entry == null) {\n // no corresponding reflection, goal has been created or enabled\n if (goal.getState() == ReflectionGoalState.ENABLED) { // we still need ...
{ "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_722
{ "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 testUpdater() throws Exception {\n assumeNonMaprProfile();\n\n YarnController controller = Mockito.mock(YarnController.class);\n\n final TestListener listener = new TestListener();\n YarnService yarnService = new YarnService(listener, controller, Mockito.mock(NodeProvider.c...
{ "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": "@Override\n public ClusterEnriched startCluster(Cluster cluster) throws YarnProvisioningHandlingException {\n Preconditions.checkArgument(cluster.getState() != ClusterState.RUNNING);\n return startClusterAsync(cluster);\n }", "class_method_signature": "YarnService.startCluster(Cluster cluster)", ...
{ "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_688
{ "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 testGetFileBlockLocations() throws IOException {\n Path path = new Path(\"/foo/10.0.0.1@bar\");\n\n BlockLocation[] locations = fs.getFileBlockLocations(new FileStatus(1027, false, 1, 4096, 123456, path), 7, 1024);\n assertEquals(1, locations.length);\n\n // BlockLocation h...
{ "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 BlockLocation[] getFileBlockLocations(FileStatus file, long start, long len) throws IOException {\n Preconditions.checkArgument(start >= 0, \"start should be positive\");\n Preconditions.checkArgument(len >= 0, \"len should be positive\");\n\n if (start >= file.getLen()) {\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_372
{ "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 testBigDecimalpec() throws Exception{\n String columnName = \"dec_9_0\";\n BigDecimal expectedValue = new BigDecimal(234);\n PartitionSpec partitionSpec = PartitionSpec\n .builderFor(schema)\n .identity(columnName)\n .build();\n\n IcebergPartitionData iceberg...
{ "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 setBigDecimal(int position, BigDecimal value) {\n set(position, value);\n }", "class_method_signature": "IcebergPartitionData.setBigDecimal(int position, BigDecimal value)", "constructor": false, "full_signature": "public void setBigDecimal(int position, BigDecimal value)", "identif...
{ "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_0
{ "fields": [ { "declarator": "thrown = ExpectedException.none()", "modifier": "@Rule\n public", "original_string": "@Rule\n public ExpectedException thrown = ExpectedException.none();", "type": "ExpectedException", "var_name": "thrown" }, { "declarator": "kvstore =\n...
{ "body": "@Test\n public void testMaxTaskVersion() {\n DACConfig dacConfig = DACConfig.newConfig();\n Upgrade upgrade = new Upgrade(dacConfig, CLASSPATH_SCAN_RESULT, false);\n final Optional<Version> tasksGreatestMaxVersion = upgrade.getUpgradeTasks().stream()\n .filter((v) -> v instanceof LegacyUpgra...
{ "fields": [ { "declarator": "logger = org.slf4j.LoggerFactory.getLogger(Upgrade.class)", "modifier": "private static final", "original_string": "private static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(Upgrade.class);", "type": "org.slf4j.Logger", "var_name"...
{ "body": "@VisibleForTesting\n List<? extends UpgradeTask> getUpgradeTasks() {\n return upgradeTasks;\n }", "class_method_signature": "Upgrade.getUpgradeTasks()", "constructor": false, "full_signature": "@VisibleForTesting List<? extends UpgradeTask> getUpgradeTasks()", "identifier": "getUpgradeTasks", ...
{ "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_558
{ "fields": [ { "declarator": "STATUS_SERVER_PROPERTY_NAME =\n ExecConstants.HTTP_ENABLE", "modifier": "private static final", "original_string": "private static final String STATUS_SERVER_PROPERTY_NAME =\n ExecConstants.HTTP_ENABLE;", "type": "String", "var_name": "STATUS_...
{ "body": "@Test\n public void test_acceptsURL_acceptsDremioUrlMinimal()\n throws SQLException\n {\n assertThat( uut.acceptsURL(\"jdbc:dremio:\"), equalTo( true ) );\n }", "class_method_signature": "DriverTest.test_acceptsURL_acceptsDremioUrlMinimal()", "constructor": false, "full_signature": "@Test pu...
{ "fields": [ { "declarator": "logger = org.slf4j.LoggerFactory.getLogger(Driver.class)", "modifier": "private static final", "original_string": "private static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(Driver.class);", "type": "org.slf4j.Logger", "var_name": ...
{ "body": "@Override\n public boolean acceptsURL( String url ) throws SQLException {\n return impl.acceptsURL( url );\n }", "class_method_signature": "Driver.acceptsURL( String url )", "constructor": false, "full_signature": "@Override public boolean acceptsURL( String url )", "identifier": "acceptsURL",...
{ "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_108
{ "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 testGetSource() throws Exception {\n SourceConfig sourceConfig = new SourceConfig();\n sourceConfig.setName(\"Foopy4\");\n NASConf nasConfig = new NASConf();\n sourceConfig.setType(nasConfig.getType());\n nasConfig.path = \"/\";\n\n sourceConfig.setConfig(nasConfig.to...
{ "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 @Path(\"/{id}\")\n public SourceDeprecated getSource(@PathParam(\"id\") String id) throws NamespaceException {\n SourceConfig sourceConfig = sourceService.getById(id);\n\n return fromSourceConfig(sourceConfig);\n }", "class_method_signature": "Sourc...
{ "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_221
{ "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 testIndexPutOptionNotSupportedCreateAndVersion() {\n KVStoreOptionUtility.checkIndexPutOptionIsNotUsed(new KVStore.PutOption[]{createOption, versionOption});\n }", "class_method_signature": "KVStoreOptionUtilityTest.testIndexPutOptionNotSupportedCreateAndVersion()", "constructo...
{ "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 checkIndexPutOptionIsNotUsed(KVStore.KVStoreOption... options) {\n if (null == options || options.length == 0) {\n return;\n }\n\n for (KVStore.KVStoreOption option : options) {\n if (option instanceof IndexPutOption) {\n throw new IllegalArgumentException(\"Ind...
{ "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_671
{ "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 testCreateFile() throws IOException {\n FSDataOutputStream mockFDOS = mock(FSDataOutputStream.class);\n doReturn(mockFDOS).when(mockLocalFS).create(\n new Path(\"/foo/bar/file\"),\n FsPermission.getFileDefault(),\n true,\n 0,\n ...
{ "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 FSDataOutputStream create(Path f, FsPermission permission, boolean overwrite, int bufferSize,\n short replication, long blockSize, Progressable progress) throws IOException {\n final Path absolutePath = toAbsolutePath(f);\n checkPath(absolutePath);\n\n // Handle root\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_364
{ "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 testIsCrossingMaxFpp() {\n try (final BloomFilter bloomFilter = new BloomFilter(bfTestAllocator, TEST_NAME, 64);\n final ArrowBuf keyBuf = bfTestAllocator.buffer(36)) {\n bloomFilter.setup();\n\n for (int i = 0; i < 1_000_000; i++) {\n ...
{ "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 boolean isCrossingMaxFPP() {\n return getExpectedFPP() > (5 * FPP);\n }", "class_method_signature": "BloomFilter.isCrossingMaxFPP()", "constructor": false, "full_signature": "public boolean isCrossingMaxFPP()", "identifier": "isCrossingMaxFPP", "invocations": [ "getExpectedFP...
{ "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_82
{ "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 testTimestampCloseToZero() throws Exception {\n // to test that times that < 100 millis are processed by Calcite correctly\n // otherwise java.lang.StringIndexOutOfBoundsException would be thrown by Calcite\n // String index out of range: -2 or (-1)\n VirtualDatasetState ds...
{ "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_626
{ "fields": [], "file": "plugins/azure/src/test/java/com/dremio/plugins/azure/TestAzureAsyncContainerProvider.java", "identifier": "TestAzureAsyncContainerProvider", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testListContainersWithRetry() throws IOException, ExecutionException, InterruptedException {\n AsyncHttpClient client = mock(AsyncHttpClient.class);\n Response response = mock(Response.class);\n when(response.getHeader(any(String.class))).thenReturn(\"\");\n HttpResponseSta...
{ "fields": [ { "declarator": "logger = LoggerFactory.getLogger(AzureAsyncContainerProvider.class)", "modifier": "private static final", "original_string": "private static final Logger logger = LoggerFactory.getLogger(AzureAsyncContainerProvider.class);", "type": "Logger", "var_name"...
{ "body": "@Override\n public Stream<ContainerFileSystem.ContainerCreator> getContainerCreators() {\n Iterator<String> containerIterator = new DFSContainerIterator(asyncHttpClient, account, authProvider, isSecure, retryer);\n return StreamSupport.stream(Spliterators.spliteratorUnknownSize(containerIterator, Sp...
{ "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_276
{ "fields": [], "file": "services/namespace/src/test/java/com/dremio/service/namespace/file/TestFileFormat.java", "identifier": "TestFileFormat", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testHasMergedCellsExcelFile() throws Exception {\n ExcelFileConfig fileFormat = new ExcelFileConfig();\n fileFormat.setHasMergedCells(true);\n String tableOptions = fileFormat.toTableOptions();\n assertContains(\"type => 'excel'\", tableOptions);\n assertContains(\"xls =...
{ "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_299
{ "fields": [], "file": "sabot/kernel/src/test/java/com/dremio/sabot/exec/TestQueriesClerk.java", "identifier": "TestQueriesClerk", "interfaces": "", "superclass": "extends TestQueriesClerkBase" }
{ "body": "@Test\n public void testGetFragmentTickets() throws Exception {\n WorkloadTicketDepot ticketDepot = new WorkloadTicketDepot(mockedRootAlloc, mock(SabotConfig.class), DUMMY_GROUP_MANAGER);\n QueriesClerk clerk = makeClerk(ticketDepot);\n\n UserBitShared.QueryId queryId = UserBitShared.QueryId.newB...
{ "fields": [ { "declarator": "workloadTicketDepot", "modifier": "private final", "original_string": "private final WorkloadTicketDepot workloadTicketDepot;", "type": "WorkloadTicketDepot", "var_name": "workloadTicketDepot" } ], "file": "sabot/kernel/src/main/java/com/dremio/...
{ "body": "Collection<FragmentTicket> getFragmentTickets(QueryId queryId) {\n List<FragmentTicket> fragmentTickets = new ArrayList<>();\n\n for (WorkloadTicket workloadTicket : getWorkloadTickets()) {\n QueryTicket queryTicket = workloadTicket.getQueryTicket(queryId);\n if (queryTicket != null) {\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_333
{ "fields": [ { "declarator": "typeFactory = SqlTypeFactoryImpl.INSTANCE", "modifier": "private final", "original_string": "private final RelDataTypeFactory typeFactory = SqlTypeFactoryImpl.INSTANCE;", "type": "RelDataTypeFactory", "var_name": "typeFactory" } ], "file": "sabo...
{ "body": "@Test\n public void testTimestampPrecisionMismatch() {\n // Don't use Dremio's type factory as it enforces a precision of 3\n final RelDataTypeFactory calciteFactory = new org.apache.calcite.jdbc.JavaTypeFactoryImpl();\n final RelDataType type1 = calciteFactory.createStructType(\n Collection...
{ "fields": [ { "declarator": "logger = org.slf4j.LoggerFactory.getLogger(MaterializationExpander.class)", "modifier": "private static final", "original_string": "private static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(MaterializationExpander.class);", "type": "org...
{ "body": "@VisibleForTesting\n static boolean areRowTypesEqual(RelDataType rowType1, RelDataType rowType2) {\n if (rowType1 == rowType2) {\n return true;\n }\n\n if (rowType2.getFieldCount() != rowType1.getFieldCount()) {\n return false;\n }\n\n final List<RelDataTypeField> f1...
{ "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" }