forward3d/rbhive

View on GitHub

Showing 414 of 414 total issues

Similar blocks of code found in 11 locations. Consider refactoring.
Open

    def process_partition_name_to_vals(seqid, iprot, oprot)
      args = read_args(iprot, Partition_name_to_vals_args)
      result = Partition_name_to_vals_result.new()
      begin
        result.success = @handler.partition_name_to_vals(args.part_name)
Severity: Major
Found in lib/thrift/thrift_hive_metastore.rb and 10 other locations - About 25 mins to fix
lib/thrift/thrift_hive_metastore.rb on lines 1008..1016
lib/thrift/thrift_hive_metastore.rb on lines 1084..1092
lib/thrift/thrift_hive_metastore.rb on lines 1166..1174
lib/thrift/thrift_hive_metastore.rb on lines 1433..1441
lib/thrift/thrift_hive_metastore.rb on lines 1522..1530
lib/thrift/thrift_hive_metastore.rb on lines 1533..1541
lib/thrift/thrift_hive_metastore.rb on lines 1610..1618
lib/thrift/thrift_hive_metastore.rb on lines 1621..1629
lib/thrift/thrift_hive_metastore.rb on lines 1632..1640
lib/thrift/thrift_hive_metastore.rb on lines 1654..1662

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 29.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 6 locations. Consider refactoring.
Open

        def process_getSchema(seqid, iprot, oprot)
          args = read_args(iprot, GetSchema_args)
          result = GetSchema_result.new()
          begin
            result.success = @handler.getSchema()
Severity: Major
Found in lib/thrift/thrift_hive.rb and 5 other locations - About 25 mins to fix
lib/thrift/thrift_hive.rb on lines 160..168
lib/thrift/thrift_hive.rb on lines 182..190
lib/thrift/thrift_hive.rb on lines 204..212
lib/thrift/thrift_hive.rb on lines 215..223
lib/thrift/thrift_hive.rb on lines 226..234

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 29.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 11 locations. Consider refactoring.
Open

    def process_get_delegation_token(seqid, iprot, oprot)
      args = read_args(iprot, Get_delegation_token_args)
      result = Get_delegation_token_result.new()
      begin
        result.success = @handler.get_delegation_token(args.renewer_kerberos_principal_name)
Severity: Major
Found in lib/thrift/thrift_hive_metastore.rb and 10 other locations - About 25 mins to fix
lib/thrift/thrift_hive_metastore.rb on lines 1008..1016
lib/thrift/thrift_hive_metastore.rb on lines 1084..1092
lib/thrift/thrift_hive_metastore.rb on lines 1166..1174
lib/thrift/thrift_hive_metastore.rb on lines 1422..1430
lib/thrift/thrift_hive_metastore.rb on lines 1433..1441
lib/thrift/thrift_hive_metastore.rb on lines 1522..1530
lib/thrift/thrift_hive_metastore.rb on lines 1533..1541
lib/thrift/thrift_hive_metastore.rb on lines 1610..1618
lib/thrift/thrift_hive_metastore.rb on lines 1621..1629
lib/thrift/thrift_hive_metastore.rb on lines 1654..1662

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 29.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 11 locations. Consider refactoring.
Open

    def process_renew_delegation_token(seqid, iprot, oprot)
      args = read_args(iprot, Renew_delegation_token_args)
      result = Renew_delegation_token_result.new()
      begin
        result.success = @handler.renew_delegation_token(args.token_str_form)
Severity: Major
Found in lib/thrift/thrift_hive_metastore.rb and 10 other locations - About 25 mins to fix
lib/thrift/thrift_hive_metastore.rb on lines 1008..1016
lib/thrift/thrift_hive_metastore.rb on lines 1084..1092
lib/thrift/thrift_hive_metastore.rb on lines 1166..1174
lib/thrift/thrift_hive_metastore.rb on lines 1422..1430
lib/thrift/thrift_hive_metastore.rb on lines 1433..1441
lib/thrift/thrift_hive_metastore.rb on lines 1522..1530
lib/thrift/thrift_hive_metastore.rb on lines 1533..1541
lib/thrift/thrift_hive_metastore.rb on lines 1610..1618
lib/thrift/thrift_hive_metastore.rb on lines 1621..1629
lib/thrift/thrift_hive_metastore.rb on lines 1632..1640

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 29.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 6 locations. Consider refactoring.
Open

        def process_fetchOne(seqid, iprot, oprot)
          args = read_args(iprot, FetchOne_args)
          result = FetchOne_result.new()
          begin
            result.success = @handler.fetchOne()
Severity: Major
Found in lib/thrift/thrift_hive.rb and 5 other locations - About 25 mins to fix
lib/thrift/thrift_hive.rb on lines 182..190
lib/thrift/thrift_hive.rb on lines 193..201
lib/thrift/thrift_hive.rb on lines 204..212
lib/thrift/thrift_hive.rb on lines 215..223
lib/thrift/thrift_hive.rb on lines 226..234

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 29.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 6 locations. Consider refactoring.
Open

        def process_getQueryPlan(seqid, iprot, oprot)
          args = read_args(iprot, GetQueryPlan_args)
          result = GetQueryPlan_result.new()
          begin
            result.success = @handler.getQueryPlan()
Severity: Major
Found in lib/thrift/thrift_hive.rb and 5 other locations - About 25 mins to fix
lib/thrift/thrift_hive.rb on lines 160..168
lib/thrift/thrift_hive.rb on lines 182..190
lib/thrift/thrift_hive.rb on lines 193..201
lib/thrift/thrift_hive.rb on lines 204..212
lib/thrift/thrift_hive.rb on lines 215..223

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 29.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 11 locations. Consider refactoring.
Open

    def process_partition_name_to_spec(seqid, iprot, oprot)
      args = read_args(iprot, Partition_name_to_spec_args)
      result = Partition_name_to_spec_result.new()
      begin
        result.success = @handler.partition_name_to_spec(args.part_name)
Severity: Major
Found in lib/thrift/thrift_hive_metastore.rb and 10 other locations - About 25 mins to fix
lib/thrift/thrift_hive_metastore.rb on lines 1008..1016
lib/thrift/thrift_hive_metastore.rb on lines 1084..1092
lib/thrift/thrift_hive_metastore.rb on lines 1166..1174
lib/thrift/thrift_hive_metastore.rb on lines 1422..1430
lib/thrift/thrift_hive_metastore.rb on lines 1522..1530
lib/thrift/thrift_hive_metastore.rb on lines 1533..1541
lib/thrift/thrift_hive_metastore.rb on lines 1610..1618
lib/thrift/thrift_hive_metastore.rb on lines 1621..1629
lib/thrift/thrift_hive_metastore.rb on lines 1632..1640
lib/thrift/thrift_hive_metastore.rb on lines 1654..1662

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 29.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 11 locations. Consider refactoring.
Open

    def process_get_all_tables(seqid, iprot, oprot)
      args = read_args(iprot, Get_all_tables_args)
      result = Get_all_tables_result.new()
      begin
        result.success = @handler.get_all_tables(args.db_name)
Severity: Major
Found in lib/thrift/thrift_hive_metastore.rb and 10 other locations - About 25 mins to fix
lib/thrift/thrift_hive_metastore.rb on lines 1008..1016
lib/thrift/thrift_hive_metastore.rb on lines 1084..1092
lib/thrift/thrift_hive_metastore.rb on lines 1422..1430
lib/thrift/thrift_hive_metastore.rb on lines 1433..1441
lib/thrift/thrift_hive_metastore.rb on lines 1522..1530
lib/thrift/thrift_hive_metastore.rb on lines 1533..1541
lib/thrift/thrift_hive_metastore.rb on lines 1610..1618
lib/thrift/thrift_hive_metastore.rb on lines 1621..1629
lib/thrift/thrift_hive_metastore.rb on lines 1632..1640
lib/thrift/thrift_hive_metastore.rb on lines 1654..1662

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 29.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 11 locations. Consider refactoring.
Open

    def process_drop_role(seqid, iprot, oprot)
      args = read_args(iprot, Drop_role_args)
      result = Drop_role_result.new()
      begin
        result.success = @handler.drop_role(args.role_name)
Severity: Major
Found in lib/thrift/thrift_hive_metastore.rb and 10 other locations - About 25 mins to fix
lib/thrift/thrift_hive_metastore.rb on lines 1008..1016
lib/thrift/thrift_hive_metastore.rb on lines 1084..1092
lib/thrift/thrift_hive_metastore.rb on lines 1166..1174
lib/thrift/thrift_hive_metastore.rb on lines 1422..1430
lib/thrift/thrift_hive_metastore.rb on lines 1433..1441
lib/thrift/thrift_hive_metastore.rb on lines 1522..1530
lib/thrift/thrift_hive_metastore.rb on lines 1610..1618
lib/thrift/thrift_hive_metastore.rb on lines 1621..1629
lib/thrift/thrift_hive_metastore.rb on lines 1632..1640
lib/thrift/thrift_hive_metastore.rb on lines 1654..1662

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 29.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 11 locations. Consider refactoring.
Open

    def process_grant_privileges(seqid, iprot, oprot)
      args = read_args(iprot, Grant_privileges_args)
      result = Grant_privileges_result.new()
      begin
        result.success = @handler.grant_privileges(args.privileges)
Severity: Major
Found in lib/thrift/thrift_hive_metastore.rb and 10 other locations - About 25 mins to fix
lib/thrift/thrift_hive_metastore.rb on lines 1008..1016
lib/thrift/thrift_hive_metastore.rb on lines 1084..1092
lib/thrift/thrift_hive_metastore.rb on lines 1166..1174
lib/thrift/thrift_hive_metastore.rb on lines 1422..1430
lib/thrift/thrift_hive_metastore.rb on lines 1433..1441
lib/thrift/thrift_hive_metastore.rb on lines 1522..1530
lib/thrift/thrift_hive_metastore.rb on lines 1533..1541
lib/thrift/thrift_hive_metastore.rb on lines 1621..1629
lib/thrift/thrift_hive_metastore.rb on lines 1632..1640
lib/thrift/thrift_hive_metastore.rb on lines 1654..1662

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 29.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 6 locations. Consider refactoring.
Open

        def process_getThriftSchema(seqid, iprot, oprot)
          args = read_args(iprot, GetThriftSchema_args)
          result = GetThriftSchema_result.new()
          begin
            result.success = @handler.getThriftSchema()
Severity: Major
Found in lib/thrift/thrift_hive.rb and 5 other locations - About 25 mins to fix
lib/thrift/thrift_hive.rb on lines 160..168
lib/thrift/thrift_hive.rb on lines 182..190
lib/thrift/thrift_hive.rb on lines 193..201
lib/thrift/thrift_hive.rb on lines 215..223
lib/thrift/thrift_hive.rb on lines 226..234

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 29.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 24 locations. Consider refactoring.
Open

  class GetCounter_result
    include ::Thrift::Struct, ::Thrift::Struct_Union
    SUCCESS = 0

    FIELDS = {
Severity: Major
Found in lib/thrift/facebook_service.rb and 23 other locations - About 20 mins to fix
lib/thrift/facebook_service.rb on lines 305..318
lib/thrift/facebook_service.rb on lines 336..349
lib/thrift/facebook_service.rb on lines 401..414
lib/thrift/facebook_service.rb on lines 448..461
lib/thrift/facebook_service.rb on lines 513..526
lib/thrift/facebook_service.rb on lines 529..542
lib/thrift/facebook_service.rb on lines 576..589
lib/thrift/facebook_service.rb on lines 592..605
lib/thrift/facebook_service.rb on lines 623..636
lib/thrift/thrift_hive.rb on lines 241..254
lib/thrift/thrift_hive.rb on lines 306..319
lib/thrift/thrift_hive_metastore.rb on lines 1716..1729
lib/thrift/thrift_hive_metastore.rb on lines 1790..1803
lib/thrift/thrift_hive_metastore.rb on lines 1893..1906
lib/thrift/thrift_hive_metastore.rb on lines 1967..1980
lib/thrift/thrift_hive_metastore.rb on lines 2003..2016
lib/thrift/thrift_hive_metastore.rb on lines 2229..2242
lib/thrift/thrift_hive_metastore.rb on lines 3033..3046
lib/thrift/thrift_hive_metastore.rb on lines 3067..3080
lib/thrift/thrift_hive_metastore.rb on lines 3375..3388
lib/thrift/thrift_hive_metastore.rb on lines 3719..3732
lib/thrift/thrift_hive_metastore.rb on lines 3789..3802
lib/thrift/thrift_hive_metastore.rb on lines 3823..3836

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 28.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 24 locations. Consider refactoring.
Open

  class Get_databases_args
    include ::Thrift::Struct, ::Thrift::Struct_Union
    PATTERN = 1

    FIELDS = {
Severity: Major
Found in lib/thrift/thrift_hive_metastore.rb and 23 other locations - About 20 mins to fix
lib/thrift/facebook_service.rb on lines 305..318
lib/thrift/facebook_service.rb on lines 336..349
lib/thrift/facebook_service.rb on lines 401..414
lib/thrift/facebook_service.rb on lines 448..461
lib/thrift/facebook_service.rb on lines 464..477
lib/thrift/facebook_service.rb on lines 513..526
lib/thrift/facebook_service.rb on lines 529..542
lib/thrift/facebook_service.rb on lines 576..589
lib/thrift/facebook_service.rb on lines 592..605
lib/thrift/facebook_service.rb on lines 623..636
lib/thrift/thrift_hive.rb on lines 241..254
lib/thrift/thrift_hive.rb on lines 306..319
lib/thrift/thrift_hive_metastore.rb on lines 1716..1729
lib/thrift/thrift_hive_metastore.rb on lines 1893..1906
lib/thrift/thrift_hive_metastore.rb on lines 1967..1980
lib/thrift/thrift_hive_metastore.rb on lines 2003..2016
lib/thrift/thrift_hive_metastore.rb on lines 2229..2242
lib/thrift/thrift_hive_metastore.rb on lines 3033..3046
lib/thrift/thrift_hive_metastore.rb on lines 3067..3080
lib/thrift/thrift_hive_metastore.rb on lines 3375..3388
lib/thrift/thrift_hive_metastore.rb on lines 3719..3732
lib/thrift/thrift_hive_metastore.rb on lines 3789..3802
lib/thrift/thrift_hive_metastore.rb on lines 3823..3836

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 28.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 24 locations. Consider refactoring.
Open

  class Get_type_args
    include ::Thrift::Struct, ::Thrift::Struct_Union
    NAME = 1

    FIELDS = {
Severity: Major
Found in lib/thrift/thrift_hive_metastore.rb and 23 other locations - About 20 mins to fix
lib/thrift/facebook_service.rb on lines 305..318
lib/thrift/facebook_service.rb on lines 336..349
lib/thrift/facebook_service.rb on lines 401..414
lib/thrift/facebook_service.rb on lines 448..461
lib/thrift/facebook_service.rb on lines 464..477
lib/thrift/facebook_service.rb on lines 513..526
lib/thrift/facebook_service.rb on lines 529..542
lib/thrift/facebook_service.rb on lines 576..589
lib/thrift/facebook_service.rb on lines 592..605
lib/thrift/facebook_service.rb on lines 623..636
lib/thrift/thrift_hive.rb on lines 241..254
lib/thrift/thrift_hive.rb on lines 306..319
lib/thrift/thrift_hive_metastore.rb on lines 1716..1729
lib/thrift/thrift_hive_metastore.rb on lines 1790..1803
lib/thrift/thrift_hive_metastore.rb on lines 1967..1980
lib/thrift/thrift_hive_metastore.rb on lines 2003..2016
lib/thrift/thrift_hive_metastore.rb on lines 2229..2242
lib/thrift/thrift_hive_metastore.rb on lines 3033..3046
lib/thrift/thrift_hive_metastore.rb on lines 3067..3080
lib/thrift/thrift_hive_metastore.rb on lines 3375..3388
lib/thrift/thrift_hive_metastore.rb on lines 3719..3732
lib/thrift/thrift_hive_metastore.rb on lines 3789..3802
lib/thrift/thrift_hive_metastore.rb on lines 3823..3836

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 28.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 24 locations. Consider refactoring.
Open

  class Partition_name_to_spec_args
    include ::Thrift::Struct, ::Thrift::Struct_Union
    PART_NAME = 1

    FIELDS = {
Severity: Major
Found in lib/thrift/thrift_hive_metastore.rb and 23 other locations - About 20 mins to fix
lib/thrift/facebook_service.rb on lines 305..318
lib/thrift/facebook_service.rb on lines 336..349
lib/thrift/facebook_service.rb on lines 401..414
lib/thrift/facebook_service.rb on lines 448..461
lib/thrift/facebook_service.rb on lines 464..477
lib/thrift/facebook_service.rb on lines 513..526
lib/thrift/facebook_service.rb on lines 529..542
lib/thrift/facebook_service.rb on lines 576..589
lib/thrift/facebook_service.rb on lines 592..605
lib/thrift/facebook_service.rb on lines 623..636
lib/thrift/thrift_hive.rb on lines 241..254
lib/thrift/thrift_hive.rb on lines 306..319
lib/thrift/thrift_hive_metastore.rb on lines 1716..1729
lib/thrift/thrift_hive_metastore.rb on lines 1790..1803
lib/thrift/thrift_hive_metastore.rb on lines 1893..1906
lib/thrift/thrift_hive_metastore.rb on lines 1967..1980
lib/thrift/thrift_hive_metastore.rb on lines 2003..2016
lib/thrift/thrift_hive_metastore.rb on lines 2229..2242
lib/thrift/thrift_hive_metastore.rb on lines 3033..3046
lib/thrift/thrift_hive_metastore.rb on lines 3375..3388
lib/thrift/thrift_hive_metastore.rb on lines 3719..3732
lib/thrift/thrift_hive_metastore.rb on lines 3789..3802
lib/thrift/thrift_hive_metastore.rb on lines 3823..3836

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 28.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 24 locations. Consider refactoring.
Open

  class GetStatusDetails_result
    include ::Thrift::Struct, ::Thrift::Struct_Union
    SUCCESS = 0

    FIELDS = {
Severity: Major
Found in lib/thrift/facebook_service.rb and 23 other locations - About 20 mins to fix
lib/thrift/facebook_service.rb on lines 305..318
lib/thrift/facebook_service.rb on lines 336..349
lib/thrift/facebook_service.rb on lines 448..461
lib/thrift/facebook_service.rb on lines 464..477
lib/thrift/facebook_service.rb on lines 513..526
lib/thrift/facebook_service.rb on lines 529..542
lib/thrift/facebook_service.rb on lines 576..589
lib/thrift/facebook_service.rb on lines 592..605
lib/thrift/facebook_service.rb on lines 623..636
lib/thrift/thrift_hive.rb on lines 241..254
lib/thrift/thrift_hive.rb on lines 306..319
lib/thrift/thrift_hive_metastore.rb on lines 1716..1729
lib/thrift/thrift_hive_metastore.rb on lines 1790..1803
lib/thrift/thrift_hive_metastore.rb on lines 1893..1906
lib/thrift/thrift_hive_metastore.rb on lines 1967..1980
lib/thrift/thrift_hive_metastore.rb on lines 2003..2016
lib/thrift/thrift_hive_metastore.rb on lines 2229..2242
lib/thrift/thrift_hive_metastore.rb on lines 3033..3046
lib/thrift/thrift_hive_metastore.rb on lines 3067..3080
lib/thrift/thrift_hive_metastore.rb on lines 3375..3388
lib/thrift/thrift_hive_metastore.rb on lines 3719..3732
lib/thrift/thrift_hive_metastore.rb on lines 3789..3802
lib/thrift/thrift_hive_metastore.rb on lines 3823..3836

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 28.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 24 locations. Consider refactoring.
Open

  class Get_database_args
    include ::Thrift::Struct, ::Thrift::Struct_Union
    NAME = 1

    FIELDS = {
Severity: Major
Found in lib/thrift/thrift_hive_metastore.rb and 23 other locations - About 20 mins to fix
lib/thrift/facebook_service.rb on lines 305..318
lib/thrift/facebook_service.rb on lines 336..349
lib/thrift/facebook_service.rb on lines 401..414
lib/thrift/facebook_service.rb on lines 448..461
lib/thrift/facebook_service.rb on lines 464..477
lib/thrift/facebook_service.rb on lines 513..526
lib/thrift/facebook_service.rb on lines 529..542
lib/thrift/facebook_service.rb on lines 576..589
lib/thrift/facebook_service.rb on lines 592..605
lib/thrift/facebook_service.rb on lines 623..636
lib/thrift/thrift_hive.rb on lines 241..254
lib/thrift/thrift_hive.rb on lines 306..319
lib/thrift/thrift_hive_metastore.rb on lines 1790..1803
lib/thrift/thrift_hive_metastore.rb on lines 1893..1906
lib/thrift/thrift_hive_metastore.rb on lines 1967..1980
lib/thrift/thrift_hive_metastore.rb on lines 2003..2016
lib/thrift/thrift_hive_metastore.rb on lines 2229..2242
lib/thrift/thrift_hive_metastore.rb on lines 3033..3046
lib/thrift/thrift_hive_metastore.rb on lines 3067..3080
lib/thrift/thrift_hive_metastore.rb on lines 3375..3388
lib/thrift/thrift_hive_metastore.rb on lines 3719..3732
lib/thrift/thrift_hive_metastore.rb on lines 3789..3802
lib/thrift/thrift_hive_metastore.rb on lines 3823..3836

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 28.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 24 locations. Consider refactoring.
Open

  class GetName_result
    include ::Thrift::Struct, ::Thrift::Struct_Union
    SUCCESS = 0

    FIELDS = {
Severity: Major
Found in lib/thrift/facebook_service.rb and 23 other locations - About 20 mins to fix
lib/thrift/facebook_service.rb on lines 336..349
lib/thrift/facebook_service.rb on lines 401..414
lib/thrift/facebook_service.rb on lines 448..461
lib/thrift/facebook_service.rb on lines 464..477
lib/thrift/facebook_service.rb on lines 513..526
lib/thrift/facebook_service.rb on lines 529..542
lib/thrift/facebook_service.rb on lines 576..589
lib/thrift/facebook_service.rb on lines 592..605
lib/thrift/facebook_service.rb on lines 623..636
lib/thrift/thrift_hive.rb on lines 241..254
lib/thrift/thrift_hive.rb on lines 306..319
lib/thrift/thrift_hive_metastore.rb on lines 1716..1729
lib/thrift/thrift_hive_metastore.rb on lines 1790..1803
lib/thrift/thrift_hive_metastore.rb on lines 1893..1906
lib/thrift/thrift_hive_metastore.rb on lines 1967..1980
lib/thrift/thrift_hive_metastore.rb on lines 2003..2016
lib/thrift/thrift_hive_metastore.rb on lines 2229..2242
lib/thrift/thrift_hive_metastore.rb on lines 3033..3046
lib/thrift/thrift_hive_metastore.rb on lines 3067..3080
lib/thrift/thrift_hive_metastore.rb on lines 3375..3388
lib/thrift/thrift_hive_metastore.rb on lines 3719..3732
lib/thrift/thrift_hive_metastore.rb on lines 3789..3802
lib/thrift/thrift_hive_metastore.rb on lines 3823..3836

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 28.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 24 locations. Consider refactoring.
Open

  class Get_all_tables_args
    include ::Thrift::Struct, ::Thrift::Struct_Union
    DB_NAME = 1

    FIELDS = {
Severity: Major
Found in lib/thrift/thrift_hive_metastore.rb and 23 other locations - About 20 mins to fix
lib/thrift/facebook_service.rb on lines 305..318
lib/thrift/facebook_service.rb on lines 336..349
lib/thrift/facebook_service.rb on lines 401..414
lib/thrift/facebook_service.rb on lines 448..461
lib/thrift/facebook_service.rb on lines 464..477
lib/thrift/facebook_service.rb on lines 513..526
lib/thrift/facebook_service.rb on lines 529..542
lib/thrift/facebook_service.rb on lines 576..589
lib/thrift/facebook_service.rb on lines 592..605
lib/thrift/facebook_service.rb on lines 623..636
lib/thrift/thrift_hive.rb on lines 241..254
lib/thrift/thrift_hive.rb on lines 306..319
lib/thrift/thrift_hive_metastore.rb on lines 1716..1729
lib/thrift/thrift_hive_metastore.rb on lines 1790..1803
lib/thrift/thrift_hive_metastore.rb on lines 1893..1906
lib/thrift/thrift_hive_metastore.rb on lines 1967..1980
lib/thrift/thrift_hive_metastore.rb on lines 2003..2016
lib/thrift/thrift_hive_metastore.rb on lines 3033..3046
lib/thrift/thrift_hive_metastore.rb on lines 3067..3080
lib/thrift/thrift_hive_metastore.rb on lines 3375..3388
lib/thrift/thrift_hive_metastore.rb on lines 3719..3732
lib/thrift/thrift_hive_metastore.rb on lines 3789..3802
lib/thrift/thrift_hive_metastore.rb on lines 3823..3836

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 28.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 24 locations. Consider refactoring.
Open

  class Partition_name_to_vals_args
    include ::Thrift::Struct, ::Thrift::Struct_Union
    PART_NAME = 1

    FIELDS = {
Severity: Major
Found in lib/thrift/thrift_hive_metastore.rb and 23 other locations - About 20 mins to fix
lib/thrift/facebook_service.rb on lines 305..318
lib/thrift/facebook_service.rb on lines 336..349
lib/thrift/facebook_service.rb on lines 401..414
lib/thrift/facebook_service.rb on lines 448..461
lib/thrift/facebook_service.rb on lines 464..477
lib/thrift/facebook_service.rb on lines 513..526
lib/thrift/facebook_service.rb on lines 529..542
lib/thrift/facebook_service.rb on lines 576..589
lib/thrift/facebook_service.rb on lines 592..605
lib/thrift/facebook_service.rb on lines 623..636
lib/thrift/thrift_hive.rb on lines 241..254
lib/thrift/thrift_hive.rb on lines 306..319
lib/thrift/thrift_hive_metastore.rb on lines 1716..1729
lib/thrift/thrift_hive_metastore.rb on lines 1790..1803
lib/thrift/thrift_hive_metastore.rb on lines 1893..1906
lib/thrift/thrift_hive_metastore.rb on lines 1967..1980
lib/thrift/thrift_hive_metastore.rb on lines 2003..2016
lib/thrift/thrift_hive_metastore.rb on lines 2229..2242
lib/thrift/thrift_hive_metastore.rb on lines 3067..3080
lib/thrift/thrift_hive_metastore.rb on lines 3375..3388
lib/thrift/thrift_hive_metastore.rb on lines 3719..3732
lib/thrift/thrift_hive_metastore.rb on lines 3789..3802
lib/thrift/thrift_hive_metastore.rb on lines 3823..3836

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 28.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Severity
Category
Status
Source
Language