forward3d/rbhive

View on GitHub
lib/thrift/thrift_hive_metastore.rb

Summary

Maintainability
F
1 mo
Test Coverage

File thrift_hive_metastore.rb has 3042 lines of code (exceeds 250 allowed). Consider refactoring.
Open

require 'thrift'
require_relative 'facebook_service'
require_relative 'hive_metastore_types'

module ThriftHiveMetastore
Severity: Major
Found in lib/thrift/thrift_hive_metastore.rb - About 1 wk to fix

    Class Client has 171 methods (exceeds 20 allowed). Consider refactoring.
    Open

      class Client < ::FacebookService::Client 
        include ::Thrift::Client
    
        def create_database(database)
          send_create_database(database)
    Severity: Major
    Found in lib/thrift/thrift_hive_metastore.rb - About 3 days to fix

      Class Processor has 57 methods (exceeds 20 allowed). Consider refactoring.
      Open

        class Processor < ::FacebookService::Processor 
          include ::Thrift::Processor
      
          def process_create_database(seqid, iprot, oprot)
            args = read_args(iprot, Create_database_args)
      Severity: Major
      Found in lib/thrift/thrift_hive_metastore.rb - About 1 day to fix

        Method recv_append_partition has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
        Open

            def recv_append_partition()
              result = receive_message(Append_partition_result)
              return result.success unless result.success.nil?
              raise result.o1 unless result.o1.nil?
              raise result.o2 unless result.o2.nil?
        Severity: Minor
        Found in lib/thrift/thrift_hive_metastore.rb - About 45 mins to fix

        Cognitive Complexity

        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

        A method's cognitive complexity is based on a few simple rules:

        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
        • Code is considered more complex for each "break in the linear flow of the code"
        • Code is considered more complex when "flow breaking structures are nested"

        Further reading

        Method recv_add_partition has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
        Open

            def recv_add_partition()
              result = receive_message(Add_partition_result)
              return result.success unless result.success.nil?
              raise result.o1 unless result.o1.nil?
              raise result.o2 unless result.o2.nil?
        Severity: Minor
        Found in lib/thrift/thrift_hive_metastore.rb - About 45 mins to fix

        Cognitive Complexity

        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

        A method's cognitive complexity is based on a few simple rules:

        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
        • Code is considered more complex for each "break in the linear flow of the code"
        • Code is considered more complex when "flow breaking structures are nested"

        Further reading

        Method recv_add_index has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
        Open

            def recv_add_index()
              result = receive_message(Add_index_result)
              return result.success unless result.success.nil?
              raise result.o1 unless result.o1.nil?
              raise result.o2 unless result.o2.nil?
        Severity: Minor
        Found in lib/thrift/thrift_hive_metastore.rb - About 45 mins to fix

        Cognitive Complexity

        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

        A method's cognitive complexity is based on a few simple rules:

        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
        • Code is considered more complex for each "break in the linear flow of the code"
        • Code is considered more complex when "flow breaking structures are nested"

        Further reading

        Method recv_create_table has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
        Open

            def recv_create_table()
              result = receive_message(Create_table_result)
              raise result.o1 unless result.o1.nil?
              raise result.o2 unless result.o2.nil?
              raise result.o3 unless result.o3.nil?
        Severity: Minor
        Found in lib/thrift/thrift_hive_metastore.rb - About 45 mins to fix

        Cognitive Complexity

        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

        A method's cognitive complexity is based on a few simple rules:

        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
        • Code is considered more complex for each "break in the linear flow of the code"
        • Code is considered more complex when "flow breaking structures are nested"

        Further reading

        Method grant_role has 6 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            def grant_role(role_name, principal_name, principal_type, grantor, grantorType, grant_option)
        Severity: Minor
        Found in lib/thrift/thrift_hive_metastore.rb - About 45 mins to fix

          Method send_grant_role has 6 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              def send_grant_role(role_name, principal_name, principal_type, grantor, grantorType, grant_option)
          Severity: Minor
          Found in lib/thrift/thrift_hive_metastore.rb - About 45 mins to fix

            Method recv_append_partition_by_name has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
            Open

                def recv_append_partition_by_name()
                  result = receive_message(Append_partition_by_name_result)
                  return result.success unless result.success.nil?
                  raise result.o1 unless result.o1.nil?
                  raise result.o2 unless result.o2.nil?
            Severity: Minor
            Found in lib/thrift/thrift_hive_metastore.rb - About 45 mins to fix

            Cognitive Complexity

            Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

            A method's cognitive complexity is based on a few simple rules:

            • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
            • Code is considered more complex for each "break in the linear flow of the code"
            • Code is considered more complex when "flow breaking structures are nested"

            Further reading

            Method recv_get_fields has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
            Open

                def recv_get_fields()
                  result = receive_message(Get_fields_result)
                  return result.success unless result.success.nil?
                  raise result.o1 unless result.o1.nil?
                  raise result.o2 unless result.o2.nil?
            Severity: Minor
            Found in lib/thrift/thrift_hive_metastore.rb - About 45 mins to fix

            Cognitive Complexity

            Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

            A method's cognitive complexity is based on a few simple rules:

            • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
            • Code is considered more complex for each "break in the linear flow of the code"
            • Code is considered more complex when "flow breaking structures are nested"

            Further reading

            Method recv_get_schema has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
            Open

                def recv_get_schema()
                  result = receive_message(Get_schema_result)
                  return result.success unless result.success.nil?
                  raise result.o1 unless result.o1.nil?
                  raise result.o2 unless result.o2.nil?
            Severity: Minor
            Found in lib/thrift/thrift_hive_metastore.rb - About 45 mins to fix

            Cognitive Complexity

            Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

            A method's cognitive complexity is based on a few simple rules:

            • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
            • Code is considered more complex for each "break in the linear flow of the code"
            • Code is considered more complex when "flow breaking structures are nested"

            Further reading

            Method get_partitions_ps_with_auth has 6 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                def get_partitions_ps_with_auth(db_name, tbl_name, part_vals, max_parts, user_name, group_names)
            Severity: Minor
            Found in lib/thrift/thrift_hive_metastore.rb - About 45 mins to fix

              Method send_get_partitions_ps_with_auth has 6 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                  def send_get_partitions_ps_with_auth(db_name, tbl_name, part_vals, max_parts, user_name, group_names)
              Severity: Minor
              Found in lib/thrift/thrift_hive_metastore.rb - About 45 mins to fix

                Method recv_create_type has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                Open

                    def recv_create_type()
                      result = receive_message(Create_type_result)
                      return result.success unless result.success.nil?
                      raise result.o1 unless result.o1.nil?
                      raise result.o2 unless result.o2.nil?
                Severity: Minor
                Found in lib/thrift/thrift_hive_metastore.rb - About 45 mins to fix

                Cognitive Complexity

                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                A method's cognitive complexity is based on a few simple rules:

                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                • Code is considered more complex for each "break in the linear flow of the code"
                • Code is considered more complex when "flow breaking structures are nested"

                Further reading

                Method get_partitions_with_auth has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                    def get_partitions_with_auth(db_name, tbl_name, max_parts, user_name, group_names)
                Severity: Minor
                Found in lib/thrift/thrift_hive_metastore.rb - About 35 mins to fix

                  Method send_get_partitions_with_auth has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                      def send_get_partitions_with_auth(db_name, tbl_name, max_parts, user_name, group_names)
                  Severity: Minor
                  Found in lib/thrift/thrift_hive_metastore.rb - About 35 mins to fix

                    Method get_partition_with_auth has 5 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                        def get_partition_with_auth(db_name, tbl_name, part_vals, user_name, group_names)
                    Severity: Minor
                    Found in lib/thrift/thrift_hive_metastore.rb - About 35 mins to fix

                      Method send_get_partition_with_auth has 5 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                          def send_get_partition_with_auth(db_name, tbl_name, part_vals, user_name, group_names)
                      Severity: Minor
                      Found in lib/thrift/thrift_hive_metastore.rb - About 35 mins to fix

                        Method recv_drop_type has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                        Open

                            def recv_drop_type()
                              result = receive_message(Drop_type_result)
                              return result.success unless result.success.nil?
                              raise result.o1 unless result.o1.nil?
                              raise result.o2 unless result.o2.nil?
                        Severity: Minor
                        Found in lib/thrift/thrift_hive_metastore.rb - About 25 mins to fix

                        Cognitive Complexity

                        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                        A method's cognitive complexity is based on a few simple rules:

                        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                        • Code is considered more complex for each "break in the linear flow of the code"
                        • Code is considered more complex when "flow breaking structures are nested"

                        Further reading

                        Method validate has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                        Open

                            def validate
                              unless @principal_type.nil? || ::PrincipalType::VALID_VALUES.include?(@principal_type)
                                raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field principal_type!')
                              end
                              unless @grantorType.nil? || ::PrincipalType::VALID_VALUES.include?(@grantorType)
                        Severity: Minor
                        Found in lib/thrift/thrift_hive_metastore.rb - About 25 mins to fix

                        Cognitive Complexity

                        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                        A method's cognitive complexity is based on a few simple rules:

                        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                        • Code is considered more complex for each "break in the linear flow of the code"
                        • Code is considered more complex when "flow breaking structures are nested"

                        Further reading

                        Method recv_get_table has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                        Open

                            def recv_get_table()
                              result = receive_message(Get_table_result)
                              return result.success unless result.success.nil?
                              raise result.o1 unless result.o1.nil?
                              raise result.o2 unless result.o2.nil?
                        Severity: Minor
                        Found in lib/thrift/thrift_hive_metastore.rb - About 25 mins to fix

                        Cognitive Complexity

                        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                        A method's cognitive complexity is based on a few simple rules:

                        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                        • Code is considered more complex for each "break in the linear flow of the code"
                        • Code is considered more complex when "flow breaking structures are nested"

                        Further reading

                        Method recv_get_partitions_by_filter has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                        Open

                            def recv_get_partitions_by_filter()
                              result = receive_message(Get_partitions_by_filter_result)
                              return result.success unless result.success.nil?
                              raise result.o1 unless result.o1.nil?
                              raise result.o2 unless result.o2.nil?
                        Severity: Minor
                        Found in lib/thrift/thrift_hive_metastore.rb - About 25 mins to fix

                        Cognitive Complexity

                        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                        A method's cognitive complexity is based on a few simple rules:

                        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                        • Code is considered more complex for each "break in the linear flow of the code"
                        • Code is considered more complex when "flow breaking structures are nested"

                        Further reading

                        Method recv_create_database has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                        Open

                            def recv_create_database()
                              result = receive_message(Create_database_result)
                              raise result.o1 unless result.o1.nil?
                              raise result.o2 unless result.o2.nil?
                              raise result.o3 unless result.o3.nil?
                        Severity: Minor
                        Found in lib/thrift/thrift_hive_metastore.rb - About 25 mins to fix

                        Cognitive Complexity

                        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                        A method's cognitive complexity is based on a few simple rules:

                        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                        • Code is considered more complex for each "break in the linear flow of the code"
                        • Code is considered more complex when "flow breaking structures are nested"

                        Further reading

                        Method recv_get_partition_with_auth has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                        Open

                            def recv_get_partition_with_auth()
                              result = receive_message(Get_partition_with_auth_result)
                              return result.success unless result.success.nil?
                              raise result.o1 unless result.o1.nil?
                              raise result.o2 unless result.o2.nil?
                        Severity: Minor
                        Found in lib/thrift/thrift_hive_metastore.rb - About 25 mins to fix

                        Cognitive Complexity

                        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                        A method's cognitive complexity is based on a few simple rules:

                        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                        • Code is considered more complex for each "break in the linear flow of the code"
                        • Code is considered more complex when "flow breaking structures are nested"

                        Further reading

                        Method recv_get_partition_by_name has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                        Open

                            def recv_get_partition_by_name()
                              result = receive_message(Get_partition_by_name_result)
                              return result.success unless result.success.nil?
                              raise result.o1 unless result.o1.nil?
                              raise result.o2 unless result.o2.nil?
                        Severity: Minor
                        Found in lib/thrift/thrift_hive_metastore.rb - About 25 mins to fix

                        Cognitive Complexity

                        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                        A method's cognitive complexity is based on a few simple rules:

                        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                        • Code is considered more complex for each "break in the linear flow of the code"
                        • Code is considered more complex when "flow breaking structures are nested"

                        Further reading

                        Method recv_get_partitions has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                        Open

                            def recv_get_partitions()
                              result = receive_message(Get_partitions_result)
                              return result.success unless result.success.nil?
                              raise result.o1 unless result.o1.nil?
                              raise result.o2 unless result.o2.nil?
                        Severity: Minor
                        Found in lib/thrift/thrift_hive_metastore.rb - About 25 mins to fix

                        Cognitive Complexity

                        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                        A method's cognitive complexity is based on a few simple rules:

                        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                        • Code is considered more complex for each "break in the linear flow of the code"
                        • Code is considered more complex when "flow breaking structures are nested"

                        Further reading

                        Method recv_get_partitions_with_auth has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                        Open

                            def recv_get_partitions_with_auth()
                              result = receive_message(Get_partitions_with_auth_result)
                              return result.success unless result.success.nil?
                              raise result.o1 unless result.o1.nil?
                              raise result.o2 unless result.o2.nil?
                        Severity: Minor
                        Found in lib/thrift/thrift_hive_metastore.rb - About 25 mins to fix

                        Cognitive Complexity

                        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                        A method's cognitive complexity is based on a few simple rules:

                        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                        • Code is considered more complex for each "break in the linear flow of the code"
                        • Code is considered more complex when "flow breaking structures are nested"

                        Further reading

                        Method recv_drop_index_by_name has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                        Open

                            def recv_drop_index_by_name()
                              result = receive_message(Drop_index_by_name_result)
                              return result.success unless result.success.nil?
                              raise result.o1 unless result.o1.nil?
                              raise result.o2 unless result.o2.nil?
                        Severity: Minor
                        Found in lib/thrift/thrift_hive_metastore.rb - About 25 mins to fix

                        Cognitive Complexity

                        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                        A method's cognitive complexity is based on a few simple rules:

                        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                        • Code is considered more complex for each "break in the linear flow of the code"
                        • Code is considered more complex when "flow breaking structures are nested"

                        Further reading

                        Method recv_get_index_by_name has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                        Open

                            def recv_get_index_by_name()
                              result = receive_message(Get_index_by_name_result)
                              return result.success unless result.success.nil?
                              raise result.o1 unless result.o1.nil?
                              raise result.o2 unless result.o2.nil?
                        Severity: Minor
                        Found in lib/thrift/thrift_hive_metastore.rb - About 25 mins to fix

                        Cognitive Complexity

                        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                        A method's cognitive complexity is based on a few simple rules:

                        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                        • Code is considered more complex for each "break in the linear flow of the code"
                        • Code is considered more complex when "flow breaking structures are nested"

                        Further reading

                        Method recv_get_database has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                        Open

                            def recv_get_database()
                              result = receive_message(Get_database_result)
                              return result.success unless result.success.nil?
                              raise result.o1 unless result.o1.nil?
                              raise result.o2 unless result.o2.nil?
                        Severity: Minor
                        Found in lib/thrift/thrift_hive_metastore.rb - About 25 mins to fix

                        Cognitive Complexity

                        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                        A method's cognitive complexity is based on a few simple rules:

                        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                        • Code is considered more complex for each "break in the linear flow of the code"
                        • Code is considered more complex when "flow breaking structures are nested"

                        Further reading

                        Method recv_get_partition has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                        Open

                            def recv_get_partition()
                              result = receive_message(Get_partition_result)
                              return result.success unless result.success.nil?
                              raise result.o1 unless result.o1.nil?
                              raise result.o2 unless result.o2.nil?
                        Severity: Minor
                        Found in lib/thrift/thrift_hive_metastore.rb - About 25 mins to fix

                        Cognitive Complexity

                        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                        A method's cognitive complexity is based on a few simple rules:

                        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                        • Code is considered more complex for each "break in the linear flow of the code"
                        • Code is considered more complex when "flow breaking structures are nested"

                        Further reading

                        Method recv_get_partitions_ps_with_auth has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                        Open

                            def recv_get_partitions_ps_with_auth()
                              result = receive_message(Get_partitions_ps_with_auth_result)
                              return result.success unless result.success.nil?
                              raise result.o1 unless result.o1.nil?
                              raise result.o2 unless result.o2.nil?
                        Severity: Minor
                        Found in lib/thrift/thrift_hive_metastore.rb - About 25 mins to fix

                        Cognitive Complexity

                        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                        A method's cognitive complexity is based on a few simple rules:

                        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                        • Code is considered more complex for each "break in the linear flow of the code"
                        • Code is considered more complex when "flow breaking structures are nested"

                        Further reading

                        Method recv_drop_partition has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                        Open

                            def recv_drop_partition()
                              result = receive_message(Drop_partition_result)
                              return result.success unless result.success.nil?
                              raise result.o1 unless result.o1.nil?
                              raise result.o2 unless result.o2.nil?
                        Severity: Minor
                        Found in lib/thrift/thrift_hive_metastore.rb - About 25 mins to fix

                        Cognitive Complexity

                        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                        A method's cognitive complexity is based on a few simple rules:

                        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                        • Code is considered more complex for each "break in the linear flow of the code"
                        • Code is considered more complex when "flow breaking structures are nested"

                        Further reading

                        Method recv_get_type has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                        Open

                            def recv_get_type()
                              result = receive_message(Get_type_result)
                              return result.success unless result.success.nil?
                              raise result.o1 unless result.o1.nil?
                              raise result.o2 unless result.o2.nil?
                        Severity: Minor
                        Found in lib/thrift/thrift_hive_metastore.rb - About 25 mins to fix

                        Cognitive Complexity

                        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                        A method's cognitive complexity is based on a few simple rules:

                        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                        • Code is considered more complex for each "break in the linear flow of the code"
                        • Code is considered more complex when "flow breaking structures are nested"

                        Further reading

                        Method recv_drop_partition_by_name has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                        Open

                            def recv_drop_partition_by_name()
                              result = receive_message(Drop_partition_by_name_result)
                              return result.success unless result.success.nil?
                              raise result.o1 unless result.o1.nil?
                              raise result.o2 unless result.o2.nil?
                        Severity: Minor
                        Found in lib/thrift/thrift_hive_metastore.rb - About 25 mins to fix

                        Cognitive Complexity

                        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                        A method's cognitive complexity is based on a few simple rules:

                        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                        • Code is considered more complex for each "break in the linear flow of the code"
                        • Code is considered more complex when "flow breaking structures are nested"

                        Further reading

                        Method recv_drop_database has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                        Open

                            def recv_drop_database()
                              result = receive_message(Drop_database_result)
                              raise result.o1 unless result.o1.nil?
                              raise result.o2 unless result.o2.nil?
                              raise result.o3 unless result.o3.nil?
                        Severity: Minor
                        Found in lib/thrift/thrift_hive_metastore.rb - About 25 mins to fix

                        Cognitive Complexity

                        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                        A method's cognitive complexity is based on a few simple rules:

                        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                        • Code is considered more complex for each "break in the linear flow of the code"
                        • Code is considered more complex when "flow breaking structures are nested"

                        Further reading

                        Method recv_get_indexes has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                        Open

                            def recv_get_indexes()
                              result = receive_message(Get_indexes_result)
                              return result.success unless result.success.nil?
                              raise result.o1 unless result.o1.nil?
                              raise result.o2 unless result.o2.nil?
                        Severity: Minor
                        Found in lib/thrift/thrift_hive_metastore.rb - About 25 mins to fix

                        Cognitive Complexity

                        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                        A method's cognitive complexity is based on a few simple rules:

                        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                        • Code is considered more complex for each "break in the linear flow of the code"
                        • Code is considered more complex when "flow breaking structures are nested"

                        Further reading

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

                          class Get_fields_result
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            SUCCESS = 0
                            O1 = 1
                            O2 = 2
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 1 other location - About 1 hr to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 2095..2114

                        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 72.

                        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 2 locations. Consider refactoring.
                        Open

                          class Get_schema_result
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            SUCCESS = 0
                            O1 = 1
                            O2 = 2
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 1 other location - About 1 hr to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 2055..2074

                        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 72.

                        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 2 locations. Consider refactoring.
                        Open

                          class Get_partitions_ps_args
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            DB_NAME = 1
                            TBL_NAME = 2
                            PART_VALS = 3
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 1 other location - About 1 hr to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 2877..2896

                        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 66.

                        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 5 locations. Consider refactoring.
                        Open

                          class Create_table_result
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            O1 = 1
                            O2 = 2
                            O3 = 3
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 4 other locations - About 1 hr to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 2355..2374
                        lib/thrift/thrift_hive_metastore.rb on lines 2397..2416
                        lib/thrift/thrift_hive_metastore.rb on lines 2439..2458
                        lib/thrift/thrift_hive_metastore.rb on lines 3119..3138

                        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 66.

                        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 2 locations. Consider refactoring.
                        Open

                          class Get_partition_names_ps_args
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            DB_NAME = 1
                            TBL_NAME = 2
                            PART_VALS = 3
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 1 other location - About 1 hr to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 2791..2810

                        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 66.

                        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 5 locations. Consider refactoring.
                        Open

                          class Add_index_result
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            SUCCESS = 0
                            O1 = 1
                            O2 = 2
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 4 other locations - About 1 hr to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 2133..2152
                        lib/thrift/thrift_hive_metastore.rb on lines 2355..2374
                        lib/thrift/thrift_hive_metastore.rb on lines 2397..2416
                        lib/thrift/thrift_hive_metastore.rb on lines 2439..2458

                        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 66.

                        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 5 locations. Consider refactoring.
                        Open

                          class Add_partition_result
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            SUCCESS = 0
                            O1 = 1
                            O2 = 2
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 4 other locations - About 1 hr to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 2133..2152
                        lib/thrift/thrift_hive_metastore.rb on lines 2397..2416
                        lib/thrift/thrift_hive_metastore.rb on lines 2439..2458
                        lib/thrift/thrift_hive_metastore.rb on lines 3119..3138

                        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 66.

                        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 5 locations. Consider refactoring.
                        Open

                          class Append_partition_result
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            SUCCESS = 0
                            O1 = 1
                            O2 = 2
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 4 other locations - About 1 hr to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 2133..2152
                        lib/thrift/thrift_hive_metastore.rb on lines 2355..2374
                        lib/thrift/thrift_hive_metastore.rb on lines 2439..2458
                        lib/thrift/thrift_hive_metastore.rb on lines 3119..3138

                        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 66.

                        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 5 locations. Consider refactoring.
                        Open

                          class Append_partition_by_name_result
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            SUCCESS = 0
                            O1 = 1
                            O2 = 2
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 4 other locations - About 1 hr to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 2133..2152
                        lib/thrift/thrift_hive_metastore.rb on lines 2355..2374
                        lib/thrift/thrift_hive_metastore.rb on lines 2397..2416
                        lib/thrift/thrift_hive_metastore.rb on lines 3119..3138

                        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 66.

                        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 5 locations. Consider refactoring.
                        Open

                          class Get_indexes_result
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            SUCCESS = 0
                            O1 = 1
                            O2 = 2
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 4 other locations - About 1 hr to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 2689..2706
                        lib/thrift/thrift_hive_metastore.rb on lines 2733..2750
                        lib/thrift/thrift_hive_metastore.rb on lines 2857..2874
                        lib/thrift/thrift_hive_metastore.rb on lines 2939..2956

                        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 60.

                        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 5 locations. Consider refactoring.
                        Open

                          class Get_partitions_result
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            SUCCESS = 0
                            O1 = 1
                            O2 = 2
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 4 other locations - About 1 hr to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 2733..2750
                        lib/thrift/thrift_hive_metastore.rb on lines 2857..2874
                        lib/thrift/thrift_hive_metastore.rb on lines 2939..2956
                        lib/thrift/thrift_hive_metastore.rb on lines 3283..3300

                        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 60.

                        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 5 locations. Consider refactoring.
                        Open

                          class Get_partitions_with_auth_result
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            SUCCESS = 0
                            O1 = 1
                            O2 = 2
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 4 other locations - About 1 hr to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 2689..2706
                        lib/thrift/thrift_hive_metastore.rb on lines 2857..2874
                        lib/thrift/thrift_hive_metastore.rb on lines 2939..2956
                        lib/thrift/thrift_hive_metastore.rb on lines 3283..3300

                        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 60.

                        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 5 locations. Consider refactoring.
                        Open

                          class Get_partitions_ps_with_auth_result
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            SUCCESS = 0
                            O1 = 1
                            O2 = 2
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 4 other locations - About 1 hr to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 2689..2706
                        lib/thrift/thrift_hive_metastore.rb on lines 2733..2750
                        lib/thrift/thrift_hive_metastore.rb on lines 2939..2956
                        lib/thrift/thrift_hive_metastore.rb on lines 3283..3300

                        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 60.

                        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 5 locations. Consider refactoring.
                        Open

                          class Get_partitions_by_filter_result
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            SUCCESS = 0
                            O1 = 1
                            O2 = 2
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 4 other locations - About 1 hr to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 2689..2706
                        lib/thrift/thrift_hive_metastore.rb on lines 2733..2750
                        lib/thrift/thrift_hive_metastore.rb on lines 2857..2874
                        lib/thrift/thrift_hive_metastore.rb on lines 3283..3300

                        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 60.

                        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 2 locations. Consider refactoring.
                        Open

                          class Drop_partition_by_name_args
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            DB_NAME = 1
                            TBL_NAME = 2
                            PART_NAME = 3
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 1 other location - About 1 hr to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 3181..3200

                        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 58.

                        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 2 locations. Consider refactoring.
                        Open

                          class Drop_index_by_name_args
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            DB_NAME = 1
                            TBL_NAME = 2
                            INDEX_NAME = 3
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 1 other location - About 1 hr to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 2503..2522

                        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 58.

                        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 2 locations. Consider refactoring.
                        Open

                          class Append_partition_args
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            DB_NAME = 1
                            TBL_NAME = 2
                            PART_VALS = 3
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 1 other location - About 1 hr to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 2545..2562

                        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 54.

                        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 9 locations. Consider refactoring.
                        Open

                          class Get_type_result
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            SUCCESS = 0
                            O1 = 1
                            O2 = 2
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 8 other locations - About 1 hr to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1696..1713
                        lib/thrift/thrift_hive_metastore.rb on lines 1732..1749
                        lib/thrift/thrift_hive_metastore.rb on lines 1770..1787
                        lib/thrift/thrift_hive_metastore.rb on lines 2281..2298
                        lib/thrift/thrift_hive_metastore.rb on lines 2565..2582
                        lib/thrift/thrift_hive_metastore.rb on lines 2609..2626
                        lib/thrift/thrift_hive_metastore.rb on lines 2649..2666
                        lib/thrift/thrift_hive_metastore.rb on lines 3243..3260

                        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 54.

                        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 9 locations. Consider refactoring.
                        Open

                          class Get_partition_by_name_result
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            SUCCESS = 0
                            O1 = 1
                            O2 = 2
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 8 other locations - About 1 hr to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1696..1713
                        lib/thrift/thrift_hive_metastore.rb on lines 1732..1749
                        lib/thrift/thrift_hive_metastore.rb on lines 1770..1787
                        lib/thrift/thrift_hive_metastore.rb on lines 1909..1926
                        lib/thrift/thrift_hive_metastore.rb on lines 2281..2298
                        lib/thrift/thrift_hive_metastore.rb on lines 2565..2582
                        lib/thrift/thrift_hive_metastore.rb on lines 2609..2626
                        lib/thrift/thrift_hive_metastore.rb on lines 3243..3260

                        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 54.

                        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 2 locations. Consider refactoring.
                        Open

                          class Get_partition_args
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            DB_NAME = 1
                            TBL_NAME = 2
                            PART_VALS = 3
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 1 other location - About 1 hr to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 2377..2394

                        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 54.

                        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 9 locations. Consider refactoring.
                        Open

                          class Get_partition_result
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            SUCCESS = 0
                            O1 = 1
                            O2 = 2
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 8 other locations - About 1 hr to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1696..1713
                        lib/thrift/thrift_hive_metastore.rb on lines 1732..1749
                        lib/thrift/thrift_hive_metastore.rb on lines 1770..1787
                        lib/thrift/thrift_hive_metastore.rb on lines 1909..1926
                        lib/thrift/thrift_hive_metastore.rb on lines 2281..2298
                        lib/thrift/thrift_hive_metastore.rb on lines 2609..2626
                        lib/thrift/thrift_hive_metastore.rb on lines 2649..2666
                        lib/thrift/thrift_hive_metastore.rb on lines 3243..3260

                        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 54.

                        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 9 locations. Consider refactoring.
                        Open

                          class Get_index_by_name_result
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            SUCCESS = 0
                            O1 = 1
                            O2 = 2
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 8 other locations - About 1 hr to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1696..1713
                        lib/thrift/thrift_hive_metastore.rb on lines 1732..1749
                        lib/thrift/thrift_hive_metastore.rb on lines 1770..1787
                        lib/thrift/thrift_hive_metastore.rb on lines 1909..1926
                        lib/thrift/thrift_hive_metastore.rb on lines 2281..2298
                        lib/thrift/thrift_hive_metastore.rb on lines 2565..2582
                        lib/thrift/thrift_hive_metastore.rb on lines 2609..2626
                        lib/thrift/thrift_hive_metastore.rb on lines 2649..2666

                        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 54.

                        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 9 locations. Consider refactoring.
                        Open

                          class Get_partition_with_auth_result
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            SUCCESS = 0
                            O1 = 1
                            O2 = 2
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 8 other locations - About 1 hr to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1696..1713
                        lib/thrift/thrift_hive_metastore.rb on lines 1732..1749
                        lib/thrift/thrift_hive_metastore.rb on lines 1770..1787
                        lib/thrift/thrift_hive_metastore.rb on lines 1909..1926
                        lib/thrift/thrift_hive_metastore.rb on lines 2281..2298
                        lib/thrift/thrift_hive_metastore.rb on lines 2565..2582
                        lib/thrift/thrift_hive_metastore.rb on lines 2649..2666
                        lib/thrift/thrift_hive_metastore.rb on lines 3243..3260

                        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 54.

                        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 9 locations. Consider refactoring.
                        Open

                          class Get_database_result
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            SUCCESS = 0
                            O1 = 1
                            O2 = 2
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 8 other locations - About 1 hr to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1696..1713
                        lib/thrift/thrift_hive_metastore.rb on lines 1770..1787
                        lib/thrift/thrift_hive_metastore.rb on lines 1909..1926
                        lib/thrift/thrift_hive_metastore.rb on lines 2281..2298
                        lib/thrift/thrift_hive_metastore.rb on lines 2565..2582
                        lib/thrift/thrift_hive_metastore.rb on lines 2609..2626
                        lib/thrift/thrift_hive_metastore.rb on lines 2649..2666
                        lib/thrift/thrift_hive_metastore.rb on lines 3243..3260

                        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 54.

                        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 9 locations. Consider refactoring.
                        Open

                          class Get_table_result
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            SUCCESS = 0
                            O1 = 1
                            O2 = 2
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 8 other locations - About 1 hr to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1696..1713
                        lib/thrift/thrift_hive_metastore.rb on lines 1732..1749
                        lib/thrift/thrift_hive_metastore.rb on lines 1770..1787
                        lib/thrift/thrift_hive_metastore.rb on lines 1909..1926
                        lib/thrift/thrift_hive_metastore.rb on lines 2565..2582
                        lib/thrift/thrift_hive_metastore.rb on lines 2609..2626
                        lib/thrift/thrift_hive_metastore.rb on lines 2649..2666
                        lib/thrift/thrift_hive_metastore.rb on lines 3243..3260

                        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 54.

                        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 9 locations. Consider refactoring.
                        Open

                          class Drop_database_result
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            O1 = 1
                            O2 = 2
                            O3 = 3
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 8 other locations - About 1 hr to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1696..1713
                        lib/thrift/thrift_hive_metastore.rb on lines 1732..1749
                        lib/thrift/thrift_hive_metastore.rb on lines 1909..1926
                        lib/thrift/thrift_hive_metastore.rb on lines 2281..2298
                        lib/thrift/thrift_hive_metastore.rb on lines 2565..2582
                        lib/thrift/thrift_hive_metastore.rb on lines 2609..2626
                        lib/thrift/thrift_hive_metastore.rb on lines 2649..2666
                        lib/thrift/thrift_hive_metastore.rb on lines 3243..3260

                        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 54.

                        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 9 locations. Consider refactoring.
                        Open

                          class Create_database_result
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            O1 = 1
                            O2 = 2
                            O3 = 3
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 8 other locations - About 1 hr to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1732..1749
                        lib/thrift/thrift_hive_metastore.rb on lines 1770..1787
                        lib/thrift/thrift_hive_metastore.rb on lines 1909..1926
                        lib/thrift/thrift_hive_metastore.rb on lines 2281..2298
                        lib/thrift/thrift_hive_metastore.rb on lines 2565..2582
                        lib/thrift/thrift_hive_metastore.rb on lines 2609..2626
                        lib/thrift/thrift_hive_metastore.rb on lines 2649..2666
                        lib/thrift/thrift_hive_metastore.rb on lines 3243..3260

                        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 54.

                        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 4 locations. Consider refactoring.
                        Open

                          class Drop_index_by_name_result
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            SUCCESS = 0
                            O1 = 1
                            O2 = 2
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 3 other locations - About 1 hr to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1983..2000
                        lib/thrift/thrift_hive_metastore.rb on lines 2483..2500
                        lib/thrift/thrift_hive_metastore.rb on lines 2525..2542

                        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 52.

                        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 4 locations. Consider refactoring.
                        Open

                          class Drop_type_result
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            SUCCESS = 0
                            O1 = 1
                            O2 = 2
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 3 other locations - About 1 hr to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 2483..2500
                        lib/thrift/thrift_hive_metastore.rb on lines 2525..2542
                        lib/thrift/thrift_hive_metastore.rb on lines 3203..3220

                        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 52.

                        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 4 locations. Consider refactoring.
                        Open

                          class Drop_partition_by_name_result
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            SUCCESS = 0
                            O1 = 1
                            O2 = 2
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 3 other locations - About 1 hr to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1983..2000
                        lib/thrift/thrift_hive_metastore.rb on lines 2483..2500
                        lib/thrift/thrift_hive_metastore.rb on lines 3203..3220

                        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 52.

                        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 4 locations. Consider refactoring.
                        Open

                          class Drop_partition_result
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            SUCCESS = 0
                            O1 = 1
                            O2 = 2
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 3 other locations - About 1 hr to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1983..2000
                        lib/thrift/thrift_hive_metastore.rb on lines 2525..2542
                        lib/thrift/thrift_hive_metastore.rb on lines 3203..3220

                        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 52.

                        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 2 locations. Consider refactoring.
                        Open

                          class Alter_partition_args
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            DB_NAME = 1
                            TBL_NAME = 2
                            NEW_PART = 3
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 1 other location - About 1 hr to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 2301..2318

                        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 50.

                        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 4 locations. Consider refactoring.
                        Open

                          class Get_partition_names_args
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            DB_NAME = 1
                            TBL_NAME = 2
                            MAX_PARTS = 3
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 3 other locations - About 1 hr to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 2669..2686
                        lib/thrift/thrift_hive_metastore.rb on lines 3263..3280
                        lib/thrift/thrift_hive_metastore.rb on lines 3303..3320

                        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 50.

                        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 4 locations. Consider refactoring.
                        Open

                          class Get_indexes_args
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            DB_NAME = 1
                            TBL_NAME = 2
                            MAX_INDEXES = 3
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 3 other locations - About 1 hr to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 2669..2686
                        lib/thrift/thrift_hive_metastore.rb on lines 2753..2770
                        lib/thrift/thrift_hive_metastore.rb on lines 3303..3320

                        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 50.

                        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 4 locations. Consider refactoring.
                        Open

                          class Get_partitions_args
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            DB_NAME = 1
                            TBL_NAME = 2
                            MAX_PARTS = 3
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 3 other locations - About 1 hr to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 2753..2770
                        lib/thrift/thrift_hive_metastore.rb on lines 3263..3280
                        lib/thrift/thrift_hive_metastore.rb on lines 3303..3320

                        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 50.

                        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 4 locations. Consider refactoring.
                        Open

                          class Get_index_names_args
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            DB_NAME = 1
                            TBL_NAME = 2
                            MAX_INDEXES = 3
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 3 other locations - About 1 hr to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 2669..2686
                        lib/thrift/thrift_hive_metastore.rb on lines 2753..2770
                        lib/thrift/thrift_hive_metastore.rb on lines 3263..3280

                        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 50.

                        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 2 locations. Consider refactoring.
                        Open

                          class Alter_table_args
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            DBNAME = 1
                            TBL_NAME = 2
                            NEW_TBL = 3
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 1 other location - About 1 hr to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 2959..2976

                        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 50.

                        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 2 locations. Consider refactoring.
                        Open

                            def process_append_partition(seqid, iprot, oprot)
                              args = read_args(iprot, Append_partition_args)
                              result = Append_partition_result.new()
                              begin
                                result.success = @handler.append_partition(args.db_name, args.tbl_name, args.part_vals)
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 1 other location - About 1 hr to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1233..1245

                        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 49.

                        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 2 locations. Consider refactoring.
                        Open

                            def process_append_partition_by_name(seqid, iprot, oprot)
                              args = read_args(iprot, Append_partition_by_name_args)
                              result = Append_partition_by_name_result.new()
                              begin
                                result.success = @handler.append_partition_by_name(args.db_name, args.tbl_name, args.part_name)
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 1 other location - About 1 hr to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1218..1230

                        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 49.

                        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

                          class Append_partition_by_name_args
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            DB_NAME = 1
                            TBL_NAME = 2
                            PART_NAME = 3
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 5 other locations - About 1 hr to fix
                        lib/thrift/hive_metastore_types.rb on lines 47..64
                        lib/thrift/hive_metastore_types.rb on lines 204..221
                        lib/thrift/thrift_hive_metastore.rb on lines 2155..2172
                        lib/thrift/thrift_hive_metastore.rb on lines 2629..2646
                        lib/thrift/thrift_hive_metastore.rb on lines 3223..3240

                        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 48.

                        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

                          class Drop_table_args
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            DBNAME = 1
                            NAME = 2
                            DELETEDATA = 3
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 5 other locations - About 1 hr to fix
                        lib/thrift/hive_metastore_types.rb on lines 47..64
                        lib/thrift/hive_metastore_types.rb on lines 204..221
                        lib/thrift/thrift_hive_metastore.rb on lines 2419..2436
                        lib/thrift/thrift_hive_metastore.rb on lines 2629..2646
                        lib/thrift/thrift_hive_metastore.rb on lines 3223..3240

                        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 48.

                        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 3 locations. Consider refactoring.
                        Open

                          class Get_partitions_ps_result
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            SUCCESS = 0
                            O1 = 1
                        
                        
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 2 other locations - About 1 hr to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 3554..3569
                        lib/thrift/thrift_hive_metastore.rb on lines 3633..3648

                        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 48.

                        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

                          class Get_index_by_name_args
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            DB_NAME = 1
                            TBL_NAME = 2
                            INDEX_NAME = 3
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 5 other locations - About 1 hr to fix
                        lib/thrift/hive_metastore_types.rb on lines 47..64
                        lib/thrift/hive_metastore_types.rb on lines 204..221
                        lib/thrift/thrift_hive_metastore.rb on lines 2155..2172
                        lib/thrift/thrift_hive_metastore.rb on lines 2419..2436
                        lib/thrift/thrift_hive_metastore.rb on lines 2629..2646

                        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 48.

                        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 3 locations. Consider refactoring.
                        Open

                          class List_privileges_result
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            SUCCESS = 0
                            O1 = 1
                        
                        
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 2 other locations - About 1 hr to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 2813..2828
                        lib/thrift/thrift_hive_metastore.rb on lines 3554..3569

                        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 48.

                        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

                          class Get_partition_by_name_args
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            DB_NAME = 1
                            TBL_NAME = 2
                            PART_NAME = 3
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 5 other locations - About 1 hr to fix
                        lib/thrift/hive_metastore_types.rb on lines 47..64
                        lib/thrift/hive_metastore_types.rb on lines 204..221
                        lib/thrift/thrift_hive_metastore.rb on lines 2155..2172
                        lib/thrift/thrift_hive_metastore.rb on lines 2419..2436
                        lib/thrift/thrift_hive_metastore.rb on lines 3223..3240

                        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 48.

                        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 3 locations. Consider refactoring.
                        Open

                          class List_roles_result
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            SUCCESS = 0
                            O1 = 1
                        
                        
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 2 other locations - About 1 hr to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 2813..2828
                        lib/thrift/thrift_hive_metastore.rb on lines 3633..3648

                        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 48.

                        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 3 locations. Consider refactoring.
                        Open

                            def process_get_schema(seqid, iprot, oprot)
                              args = read_args(iprot, Get_schema_args)
                              result = Get_schema_result.new()
                              begin
                                result.success = @handler.get_schema(args.db_name, args.table_name)
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 2 other locations - About 1 hr to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1095..1107
                        lib/thrift/thrift_hive_metastore.rb on lines 1444..1456

                        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 47.

                        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 3 locations. Consider refactoring.
                        Open

                            def process_add_index(seqid, iprot, oprot)
                              args = read_args(iprot, Add_index_args)
                              result = Add_index_result.new()
                              begin
                                result.success = @handler.add_index(args.new_index, args.index_table)
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 2 other locations - About 1 hr to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1095..1107
                        lib/thrift/thrift_hive_metastore.rb on lines 1110..1122

                        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 47.

                        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 3 locations. Consider refactoring.
                        Open

                            def process_get_fields(seqid, iprot, oprot)
                              args = read_args(iprot, Get_fields_args)
                              result = Get_fields_result.new()
                              begin
                                result.success = @handler.get_fields(args.db_name, args.table_name)
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 2 other locations - About 1 hr to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1110..1122
                        lib/thrift/thrift_hive_metastore.rb on lines 1444..1456

                        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 47.

                        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 9 locations. Consider refactoring.
                        Open

                          class Get_index_names_result
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            SUCCESS = 0
                            O2 = 1
                        
                        
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 8 other locations - About 55 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1806..1821
                        lib/thrift/thrift_hive_metastore.rb on lines 1839..1854
                        lib/thrift/thrift_hive_metastore.rb on lines 2211..2226
                        lib/thrift/thrift_hive_metastore.rb on lines 2245..2260
                        lib/thrift/thrift_hive_metastore.rb on lines 2773..2788
                        lib/thrift/thrift_hive_metastore.rb on lines 2899..2914
                        lib/thrift/thrift_hive_metastore.rb on lines 3049..3064
                        lib/thrift/thrift_hive_metastore.rb on lines 3424..3439

                        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 46.

                        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 9 locations. Consider refactoring.
                        Open

                          class Get_databases_result
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            SUCCESS = 0
                            O1 = 1
                        
                        
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 8 other locations - About 55 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1839..1854
                        lib/thrift/thrift_hive_metastore.rb on lines 2211..2226
                        lib/thrift/thrift_hive_metastore.rb on lines 2245..2260
                        lib/thrift/thrift_hive_metastore.rb on lines 2773..2788
                        lib/thrift/thrift_hive_metastore.rb on lines 2899..2914
                        lib/thrift/thrift_hive_metastore.rb on lines 3049..3064
                        lib/thrift/thrift_hive_metastore.rb on lines 3323..3338
                        lib/thrift/thrift_hive_metastore.rb on lines 3424..3439

                        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 46.

                        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 9 locations. Consider refactoring.
                        Open

                          class Get_all_tables_result
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            SUCCESS = 0
                            O1 = 1
                        
                        
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 8 other locations - About 55 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1806..1821
                        lib/thrift/thrift_hive_metastore.rb on lines 1839..1854
                        lib/thrift/thrift_hive_metastore.rb on lines 2211..2226
                        lib/thrift/thrift_hive_metastore.rb on lines 2773..2788
                        lib/thrift/thrift_hive_metastore.rb on lines 2899..2914
                        lib/thrift/thrift_hive_metastore.rb on lines 3049..3064
                        lib/thrift/thrift_hive_metastore.rb on lines 3323..3338
                        lib/thrift/thrift_hive_metastore.rb on lines 3424..3439

                        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 46.

                        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 9 locations. Consider refactoring.
                        Open

                          class Get_tables_result
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            SUCCESS = 0
                            O1 = 1
                        
                        
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 8 other locations - About 55 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1806..1821
                        lib/thrift/thrift_hive_metastore.rb on lines 1839..1854
                        lib/thrift/thrift_hive_metastore.rb on lines 2245..2260
                        lib/thrift/thrift_hive_metastore.rb on lines 2773..2788
                        lib/thrift/thrift_hive_metastore.rb on lines 2899..2914
                        lib/thrift/thrift_hive_metastore.rb on lines 3049..3064
                        lib/thrift/thrift_hive_metastore.rb on lines 3323..3338
                        lib/thrift/thrift_hive_metastore.rb on lines 3424..3439

                        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 46.

                        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 9 locations. Consider refactoring.
                        Open

                          class Get_role_names_result
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            SUCCESS = 0
                            O1 = 1
                        
                        
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 8 other locations - About 55 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1806..1821
                        lib/thrift/thrift_hive_metastore.rb on lines 1839..1854
                        lib/thrift/thrift_hive_metastore.rb on lines 2211..2226
                        lib/thrift/thrift_hive_metastore.rb on lines 2245..2260
                        lib/thrift/thrift_hive_metastore.rb on lines 2773..2788
                        lib/thrift/thrift_hive_metastore.rb on lines 2899..2914
                        lib/thrift/thrift_hive_metastore.rb on lines 3049..3064
                        lib/thrift/thrift_hive_metastore.rb on lines 3323..3338

                        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 46.

                        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 9 locations. Consider refactoring.
                        Open

                          class Partition_name_to_vals_result
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            SUCCESS = 0
                            O1 = 1
                        
                        
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 8 other locations - About 55 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1806..1821
                        lib/thrift/thrift_hive_metastore.rb on lines 1839..1854
                        lib/thrift/thrift_hive_metastore.rb on lines 2211..2226
                        lib/thrift/thrift_hive_metastore.rb on lines 2245..2260
                        lib/thrift/thrift_hive_metastore.rb on lines 2773..2788
                        lib/thrift/thrift_hive_metastore.rb on lines 2899..2914
                        lib/thrift/thrift_hive_metastore.rb on lines 3323..3338
                        lib/thrift/thrift_hive_metastore.rb on lines 3424..3439

                        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 46.

                        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 9 locations. Consider refactoring.
                        Open

                          class Get_all_databases_result
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            SUCCESS = 0
                            O1 = 1
                        
                        
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 8 other locations - About 55 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1806..1821
                        lib/thrift/thrift_hive_metastore.rb on lines 2211..2226
                        lib/thrift/thrift_hive_metastore.rb on lines 2245..2260
                        lib/thrift/thrift_hive_metastore.rb on lines 2773..2788
                        lib/thrift/thrift_hive_metastore.rb on lines 2899..2914
                        lib/thrift/thrift_hive_metastore.rb on lines 3049..3064
                        lib/thrift/thrift_hive_metastore.rb on lines 3323..3338
                        lib/thrift/thrift_hive_metastore.rb on lines 3424..3439

                        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 46.

                        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 9 locations. Consider refactoring.
                        Open

                          class Get_partition_names_result
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            SUCCESS = 0
                            O2 = 1
                        
                        
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 8 other locations - About 55 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1806..1821
                        lib/thrift/thrift_hive_metastore.rb on lines 1839..1854
                        lib/thrift/thrift_hive_metastore.rb on lines 2211..2226
                        lib/thrift/thrift_hive_metastore.rb on lines 2245..2260
                        lib/thrift/thrift_hive_metastore.rb on lines 2899..2914
                        lib/thrift/thrift_hive_metastore.rb on lines 3049..3064
                        lib/thrift/thrift_hive_metastore.rb on lines 3323..3338
                        lib/thrift/thrift_hive_metastore.rb on lines 3424..3439

                        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 46.

                        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 9 locations. Consider refactoring.
                        Open

                          class Get_partition_names_ps_result
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            SUCCESS = 0
                            O1 = 1
                        
                        
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 8 other locations - About 55 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1806..1821
                        lib/thrift/thrift_hive_metastore.rb on lines 1839..1854
                        lib/thrift/thrift_hive_metastore.rb on lines 2211..2226
                        lib/thrift/thrift_hive_metastore.rb on lines 2245..2260
                        lib/thrift/thrift_hive_metastore.rb on lines 2773..2788
                        lib/thrift/thrift_hive_metastore.rb on lines 3049..3064
                        lib/thrift/thrift_hive_metastore.rb on lines 3323..3338
                        lib/thrift/thrift_hive_metastore.rb on lines 3424..3439

                        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 46.

                        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 2 locations. Consider refactoring.
                        Open

                            def process_get_partition_with_auth(seqid, iprot, oprot)
                              args = read_args(iprot, Get_partition_with_auth_args)
                              result = Get_partition_with_auth_result.new()
                              begin
                                result.success = @handler.get_partition_with_auth(args.db_name, args.tbl_name, args.part_vals, args.user_name, args.group_names)
                        Severity: Minor
                        Found in lib/thrift/thrift_hive_metastore.rb and 1 other location - About 55 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1326..1336

                        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 45.

                        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 2 locations. Consider refactoring.
                        Open

                            def process_get_partitions_with_auth(seqid, iprot, oprot)
                              args = read_args(iprot, Get_partitions_with_auth_args)
                              result = Get_partitions_with_auth_result.new()
                              begin
                                result.success = @handler.get_partitions_with_auth(args.db_name, args.tbl_name, args.max_parts, args.user_name, args.group_names)
                        Severity: Minor
                        Found in lib/thrift/thrift_hive_metastore.rb and 1 other location - About 55 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1287..1297

                        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 45.

                        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 2 locations. Consider refactoring.
                        Open

                            def process_add_partition(seqid, iprot, oprot)
                              args = read_args(iprot, Add_partition_args)
                              result = Add_partition_result.new()
                              begin
                                result.success = @handler.add_partition(args.new_part)
                        Severity: Minor
                        Found in lib/thrift/thrift_hive_metastore.rb and 1 other location - About 55 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1056..1068

                        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 45.

                        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 2 locations. Consider refactoring.
                        Open

                            def process_create_type(seqid, iprot, oprot)
                              args = read_args(iprot, Create_type_args)
                              result = Create_type_result.new()
                              begin
                                result.success = @handler.create_type(args.type)
                        Severity: Minor
                        Found in lib/thrift/thrift_hive_metastore.rb and 1 other location - About 55 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1203..1215

                        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 45.

                        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 4 locations. Consider refactoring.
                        Open

                            def process_drop_partition_by_name(seqid, iprot, oprot)
                              args = read_args(iprot, Drop_partition_by_name_args)
                              result = Drop_partition_by_name_result.new()
                              begin
                                result.success = @handler.drop_partition_by_name(args.db_name, args.tbl_name, args.part_name, args.deleteData)
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 3 other locations - About 50 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1248..1258
                        lib/thrift/thrift_hive_metastore.rb on lines 1385..1395
                        lib/thrift/thrift_hive_metastore.rb on lines 1472..1482

                        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 43.

                        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 4 locations. Consider refactoring.
                        Open

                            def process_drop_index_by_name(seqid, iprot, oprot)
                              args = read_args(iprot, Drop_index_by_name_args)
                              result = Drop_index_by_name_result.new()
                              begin
                                result.success = @handler.drop_index_by_name(args.db_name, args.tbl_name, args.index_name, args.deleteData)
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 3 other locations - About 50 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1248..1258
                        lib/thrift/thrift_hive_metastore.rb on lines 1261..1271
                        lib/thrift/thrift_hive_metastore.rb on lines 1385..1395

                        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 43.

                        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 4 locations. Consider refactoring.
                        Open

                            def process_drop_partition(seqid, iprot, oprot)
                              args = read_args(iprot, Drop_partition_args)
                              result = Drop_partition_result.new()
                              begin
                                result.success = @handler.drop_partition(args.db_name, args.tbl_name, args.part_vals, args.deleteData)
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 3 other locations - About 50 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1261..1271
                        lib/thrift/thrift_hive_metastore.rb on lines 1385..1395
                        lib/thrift/thrift_hive_metastore.rb on lines 1472..1482

                        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 43.

                        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 4 locations. Consider refactoring.
                        Open

                            def process_get_partitions_by_filter(seqid, iprot, oprot)
                              args = read_args(iprot, Get_partitions_by_filter_args)
                              result = Get_partitions_by_filter_result.new()
                              begin
                                result.success = @handler.get_partitions_by_filter(args.db_name, args.tbl_name, args.filter, args.max_parts)
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 3 other locations - About 50 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1248..1258
                        lib/thrift/thrift_hive_metastore.rb on lines 1261..1271
                        lib/thrift/thrift_hive_metastore.rb on lines 1472..1482

                        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 43.

                        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 7 locations. Consider refactoring.
                        Open

                          class Alter_database_result
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            O1 = 1
                            O2 = 2
                        
                        
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 6 other locations - About 50 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 2175..2190
                        lib/thrift/thrift_hive_metastore.rb on lines 2321..2336
                        lib/thrift/thrift_hive_metastore.rb on lines 2979..2994
                        lib/thrift/thrift_hive_metastore.rb on lines 3101..3116
                        lib/thrift/thrift_hive_metastore.rb on lines 3163..3178
                        lib/thrift/thrift_hive_metastore.rb on lines 3592..3607

                        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 42.

                        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 7 locations. Consider refactoring.
                        Open

                          class Drop_table_result
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            O1 = 1
                            O3 = 2
                        
                        
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 6 other locations - About 50 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1875..1890
                        lib/thrift/thrift_hive_metastore.rb on lines 2321..2336
                        lib/thrift/thrift_hive_metastore.rb on lines 2979..2994
                        lib/thrift/thrift_hive_metastore.rb on lines 3101..3116
                        lib/thrift/thrift_hive_metastore.rb on lines 3163..3178
                        lib/thrift/thrift_hive_metastore.rb on lines 3592..3607

                        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 42.

                        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 7 locations. Consider refactoring.
                        Open

                          class Add_index_args
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            NEW_INDEX = 1
                            INDEX_TABLE = 2
                        
                        
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 6 other locations - About 50 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1875..1890
                        lib/thrift/thrift_hive_metastore.rb on lines 2175..2190
                        lib/thrift/thrift_hive_metastore.rb on lines 2321..2336
                        lib/thrift/thrift_hive_metastore.rb on lines 2979..2994
                        lib/thrift/thrift_hive_metastore.rb on lines 3163..3178
                        lib/thrift/thrift_hive_metastore.rb on lines 3592..3607

                        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 42.

                        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 7 locations. Consider refactoring.
                        Open

                          class Alter_table_result
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            O1 = 1
                            O2 = 2
                        
                        
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 6 other locations - About 50 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1875..1890
                        lib/thrift/thrift_hive_metastore.rb on lines 2175..2190
                        lib/thrift/thrift_hive_metastore.rb on lines 2979..2994
                        lib/thrift/thrift_hive_metastore.rb on lines 3101..3116
                        lib/thrift/thrift_hive_metastore.rb on lines 3163..3178
                        lib/thrift/thrift_hive_metastore.rb on lines 3592..3607

                        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 42.

                        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 7 locations. Consider refactoring.
                        Open

                          class Alter_index_result
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            O1 = 1
                            O2 = 2
                        
                        
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 6 other locations - About 50 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1875..1890
                        lib/thrift/thrift_hive_metastore.rb on lines 2175..2190
                        lib/thrift/thrift_hive_metastore.rb on lines 2321..2336
                        lib/thrift/thrift_hive_metastore.rb on lines 2979..2994
                        lib/thrift/thrift_hive_metastore.rb on lines 3101..3116
                        lib/thrift/thrift_hive_metastore.rb on lines 3592..3607

                        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 42.

                        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 7 locations. Consider refactoring.
                        Open

                          class Alter_partition_result
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            O1 = 1
                            O2 = 2
                        
                        
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 6 other locations - About 50 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1875..1890
                        lib/thrift/thrift_hive_metastore.rb on lines 2175..2190
                        lib/thrift/thrift_hive_metastore.rb on lines 2321..2336
                        lib/thrift/thrift_hive_metastore.rb on lines 3101..3116
                        lib/thrift/thrift_hive_metastore.rb on lines 3163..3178
                        lib/thrift/thrift_hive_metastore.rb on lines 3592..3607

                        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 42.

                        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 7 locations. Consider refactoring.
                        Open

                          class Get_privilege_set_result
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            SUCCESS = 0
                            O1 = 1
                        
                        
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 6 other locations - About 50 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1875..1890
                        lib/thrift/thrift_hive_metastore.rb on lines 2175..2190
                        lib/thrift/thrift_hive_metastore.rb on lines 2321..2336
                        lib/thrift/thrift_hive_metastore.rb on lines 2979..2994
                        lib/thrift/thrift_hive_metastore.rb on lines 3101..3116
                        lib/thrift/thrift_hive_metastore.rb on lines 3163..3178

                        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 42.

                        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 5 locations. Consider refactoring.
                        Open

                            def process_get_indexes(seqid, iprot, oprot)
                              args = read_args(iprot, Get_indexes_args)
                              result = Get_indexes_result.new()
                              begin
                                result.success = @handler.get_indexes(args.db_name, args.tbl_name, args.max_indexes)
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 4 other locations - About 45 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1274..1284
                        lib/thrift/thrift_hive_metastore.rb on lines 1300..1310
                        lib/thrift/thrift_hive_metastore.rb on lines 1313..1323
                        lib/thrift/thrift_hive_metastore.rb on lines 1485..1495

                        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 41.

                        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 7 locations. Consider refactoring.
                        Open

                            def recv_add_index()
                              result = receive_message(Add_index_result)
                              return result.success unless result.success.nil?
                              raise result.o1 unless result.o1.nil?
                              raise result.o2 unless result.o2.nil?
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 6 other locations - About 45 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 140..146
                        lib/thrift/thrift_hive_metastore.rb on lines 191..197
                        lib/thrift/thrift_hive_metastore.rb on lines 209..215
                        lib/thrift/thrift_hive_metastore.rb on lines 326..332
                        lib/thrift/thrift_hive_metastore.rb on lines 344..350
                        lib/thrift/thrift_hive_metastore.rb on lines 362..368

                        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 41.

                        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 5 locations. Consider refactoring.
                        Open

                            def process_get_partitions(seqid, iprot, oprot)
                              args = read_args(iprot, Get_partitions_args)
                              result = Get_partitions_result.new()
                              begin
                                result.success = @handler.get_partitions(args.db_name, args.tbl_name, args.max_parts)
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 4 other locations - About 45 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1274..1284
                        lib/thrift/thrift_hive_metastore.rb on lines 1300..1310
                        lib/thrift/thrift_hive_metastore.rb on lines 1485..1495
                        lib/thrift/thrift_hive_metastore.rb on lines 1498..1508

                        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 41.

                        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 7 locations. Consider refactoring.
                        Open

                            def recv_create_type()
                              result = receive_message(Create_type_result)
                              return result.success unless result.success.nil?
                              raise result.o1 unless result.o1.nil?
                              raise result.o2 unless result.o2.nil?
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 6 other locations - About 45 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 191..197
                        lib/thrift/thrift_hive_metastore.rb on lines 209..215
                        lib/thrift/thrift_hive_metastore.rb on lines 326..332
                        lib/thrift/thrift_hive_metastore.rb on lines 344..350
                        lib/thrift/thrift_hive_metastore.rb on lines 362..368
                        lib/thrift/thrift_hive_metastore.rb on lines 645..651

                        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 41.

                        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 7 locations. Consider refactoring.
                        Open

                            def recv_append_partition()
                              result = receive_message(Append_partition_result)
                              return result.success unless result.success.nil?
                              raise result.o1 unless result.o1.nil?
                              raise result.o2 unless result.o2.nil?
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 6 other locations - About 45 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 140..146
                        lib/thrift/thrift_hive_metastore.rb on lines 191..197
                        lib/thrift/thrift_hive_metastore.rb on lines 209..215
                        lib/thrift/thrift_hive_metastore.rb on lines 326..332
                        lib/thrift/thrift_hive_metastore.rb on lines 362..368
                        lib/thrift/thrift_hive_metastore.rb on lines 645..651

                        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 41.

                        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 5 locations. Consider refactoring.
                        Open

                            def process_get_partition(seqid, iprot, oprot)
                              args = read_args(iprot, Get_partition_args)
                              result = Get_partition_result.new()
                              begin
                                result.success = @handler.get_partition(args.db_name, args.tbl_name, args.part_vals)
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 4 other locations - About 45 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1300..1310
                        lib/thrift/thrift_hive_metastore.rb on lines 1313..1323
                        lib/thrift/thrift_hive_metastore.rb on lines 1485..1495
                        lib/thrift/thrift_hive_metastore.rb on lines 1498..1508

                        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 41.

                        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 5 locations. Consider refactoring.
                        Open

                            def process_get_partition_by_name(seqid, iprot, oprot)
                              args = read_args(iprot, Get_partition_by_name_args)
                              result = Get_partition_by_name_result.new()
                              begin
                                result.success = @handler.get_partition_by_name(args.db_name, args.tbl_name, args.part_name)
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 4 other locations - About 45 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1274..1284
                        lib/thrift/thrift_hive_metastore.rb on lines 1313..1323
                        lib/thrift/thrift_hive_metastore.rb on lines 1485..1495
                        lib/thrift/thrift_hive_metastore.rb on lines 1498..1508

                        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 41.

                        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 7 locations. Consider refactoring.
                        Open

                            def recv_add_partition()
                              result = receive_message(Add_partition_result)
                              return result.success unless result.success.nil?
                              raise result.o1 unless result.o1.nil?
                              raise result.o2 unless result.o2.nil?
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 6 other locations - About 45 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 140..146
                        lib/thrift/thrift_hive_metastore.rb on lines 191..197
                        lib/thrift/thrift_hive_metastore.rb on lines 209..215
                        lib/thrift/thrift_hive_metastore.rb on lines 344..350
                        lib/thrift/thrift_hive_metastore.rb on lines 362..368
                        lib/thrift/thrift_hive_metastore.rb on lines 645..651

                        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 41.

                        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 7 locations. Consider refactoring.
                        Open

                            def recv_append_partition_by_name()
                              result = receive_message(Append_partition_by_name_result)
                              return result.success unless result.success.nil?
                              raise result.o1 unless result.o1.nil?
                              raise result.o2 unless result.o2.nil?
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 6 other locations - About 45 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 140..146
                        lib/thrift/thrift_hive_metastore.rb on lines 191..197
                        lib/thrift/thrift_hive_metastore.rb on lines 209..215
                        lib/thrift/thrift_hive_metastore.rb on lines 326..332
                        lib/thrift/thrift_hive_metastore.rb on lines 344..350
                        lib/thrift/thrift_hive_metastore.rb on lines 645..651

                        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 41.

                        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 5 locations. Consider refactoring.
                        Open

                            def process_get_index_by_name(seqid, iprot, oprot)
                              args = read_args(iprot, Get_index_by_name_args)
                              result = Get_index_by_name_result.new()
                              begin
                                result.success = @handler.get_index_by_name(args.db_name, args.tbl_name, args.index_name)
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 4 other locations - About 45 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1274..1284
                        lib/thrift/thrift_hive_metastore.rb on lines 1300..1310
                        lib/thrift/thrift_hive_metastore.rb on lines 1313..1323
                        lib/thrift/thrift_hive_metastore.rb on lines 1498..1508

                        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 41.

                        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 7 locations. Consider refactoring.
                        Open

                            def recv_get_schema()
                              result = receive_message(Get_schema_result)
                              return result.success unless result.success.nil?
                              raise result.o1 unless result.o1.nil?
                              raise result.o2 unless result.o2.nil?
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 6 other locations - About 45 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 140..146
                        lib/thrift/thrift_hive_metastore.rb on lines 191..197
                        lib/thrift/thrift_hive_metastore.rb on lines 326..332
                        lib/thrift/thrift_hive_metastore.rb on lines 344..350
                        lib/thrift/thrift_hive_metastore.rb on lines 362..368
                        lib/thrift/thrift_hive_metastore.rb on lines 645..651

                        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 41.

                        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 7 locations. Consider refactoring.
                        Open

                            def recv_get_fields()
                              result = receive_message(Get_fields_result)
                              return result.success unless result.success.nil?
                              raise result.o1 unless result.o1.nil?
                              raise result.o2 unless result.o2.nil?
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 6 other locations - About 45 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 140..146
                        lib/thrift/thrift_hive_metastore.rb on lines 209..215
                        lib/thrift/thrift_hive_metastore.rb on lines 326..332
                        lib/thrift/thrift_hive_metastore.rb on lines 344..350
                        lib/thrift/thrift_hive_metastore.rb on lines 362..368
                        lib/thrift/thrift_hive_metastore.rb on lines 645..651

                        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 41.

                        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

                          class Alter_database_args
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            DBNAME = 1
                            DB = 2
                        
                        
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 10 other locations - About 45 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 3015..3030
                        lib/thrift/thrift_hive_metastore.rb on lines 3357..3372
                        lib/thrift/thrift_hive_metastore.rb on lines 3391..3406
                        lib/thrift/thrift_hive_metastore.rb on lines 3474..3489
                        lib/thrift/thrift_hive_metastore.rb on lines 3515..3530
                        lib/thrift/thrift_hive_metastore.rb on lines 3667..3682
                        lib/thrift/thrift_hive_metastore.rb on lines 3701..3716
                        lib/thrift/thrift_hive_metastore.rb on lines 3735..3750
                        lib/thrift/thrift_hive_metastore.rb on lines 3771..3786
                        lib/thrift/thrift_hive_metastore.rb on lines 3805..3820

                        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 40.

                        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

                          class Revoke_privileges_result
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            SUCCESS = 0
                            O1 = 1
                        
                        
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 10 other locations - About 45 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1857..1872
                        lib/thrift/thrift_hive_metastore.rb on lines 3015..3030
                        lib/thrift/thrift_hive_metastore.rb on lines 3357..3372
                        lib/thrift/thrift_hive_metastore.rb on lines 3391..3406
                        lib/thrift/thrift_hive_metastore.rb on lines 3474..3489
                        lib/thrift/thrift_hive_metastore.rb on lines 3515..3530
                        lib/thrift/thrift_hive_metastore.rb on lines 3667..3682
                        lib/thrift/thrift_hive_metastore.rb on lines 3735..3750
                        lib/thrift/thrift_hive_metastore.rb on lines 3771..3786
                        lib/thrift/thrift_hive_metastore.rb on lines 3805..3820

                        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 40.

                        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

                          class Get_delegation_token_result
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            SUCCESS = 0
                            O1 = 1
                        
                        
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 10 other locations - About 45 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1857..1872
                        lib/thrift/thrift_hive_metastore.rb on lines 3015..3030
                        lib/thrift/thrift_hive_metastore.rb on lines 3357..3372
                        lib/thrift/thrift_hive_metastore.rb on lines 3391..3406
                        lib/thrift/thrift_hive_metastore.rb on lines 3474..3489
                        lib/thrift/thrift_hive_metastore.rb on lines 3515..3530
                        lib/thrift/thrift_hive_metastore.rb on lines 3667..3682
                        lib/thrift/thrift_hive_metastore.rb on lines 3701..3716
                        lib/thrift/thrift_hive_metastore.rb on lines 3771..3786
                        lib/thrift/thrift_hive_metastore.rb on lines 3805..3820

                        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 40.

                        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

                          class Get_delegation_token_with_signature_result
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            SUCCESS = 0
                            O1 = 1
                        
                        
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 10 other locations - About 45 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1857..1872
                        lib/thrift/thrift_hive_metastore.rb on lines 3015..3030
                        lib/thrift/thrift_hive_metastore.rb on lines 3357..3372
                        lib/thrift/thrift_hive_metastore.rb on lines 3391..3406
                        lib/thrift/thrift_hive_metastore.rb on lines 3474..3489
                        lib/thrift/thrift_hive_metastore.rb on lines 3515..3530
                        lib/thrift/thrift_hive_metastore.rb on lines 3667..3682
                        lib/thrift/thrift_hive_metastore.rb on lines 3701..3716
                        lib/thrift/thrift_hive_metastore.rb on lines 3735..3750
                        lib/thrift/thrift_hive_metastore.rb on lines 3805..3820

                        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 40.

                        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

                          class Get_config_value_result
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            SUCCESS = 0
                            O1 = 1
                        
                        
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 10 other locations - About 45 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1857..1872
                        lib/thrift/thrift_hive_metastore.rb on lines 3357..3372
                        lib/thrift/thrift_hive_metastore.rb on lines 3391..3406
                        lib/thrift/thrift_hive_metastore.rb on lines 3474..3489
                        lib/thrift/thrift_hive_metastore.rb on lines 3515..3530
                        lib/thrift/thrift_hive_metastore.rb on lines 3667..3682
                        lib/thrift/thrift_hive_metastore.rb on lines 3701..3716
                        lib/thrift/thrift_hive_metastore.rb on lines 3735..3750
                        lib/thrift/thrift_hive_metastore.rb on lines 3771..3786
                        lib/thrift/thrift_hive_metastore.rb on lines 3805..3820

                        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 40.

                        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

                          class Create_role_result
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            SUCCESS = 0
                            O1 = 1
                        
                        
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 10 other locations - About 45 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1857..1872
                        lib/thrift/thrift_hive_metastore.rb on lines 3015..3030
                        lib/thrift/thrift_hive_metastore.rb on lines 3391..3406
                        lib/thrift/thrift_hive_metastore.rb on lines 3474..3489
                        lib/thrift/thrift_hive_metastore.rb on lines 3515..3530
                        lib/thrift/thrift_hive_metastore.rb on lines 3667..3682
                        lib/thrift/thrift_hive_metastore.rb on lines 3701..3716
                        lib/thrift/thrift_hive_metastore.rb on lines 3735..3750
                        lib/thrift/thrift_hive_metastore.rb on lines 3771..3786
                        lib/thrift/thrift_hive_metastore.rb on lines 3805..3820

                        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 40.

                        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

                          class Grant_privileges_result
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            SUCCESS = 0
                            O1 = 1
                        
                        
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 10 other locations - About 45 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1857..1872
                        lib/thrift/thrift_hive_metastore.rb on lines 3015..3030
                        lib/thrift/thrift_hive_metastore.rb on lines 3357..3372
                        lib/thrift/thrift_hive_metastore.rb on lines 3391..3406
                        lib/thrift/thrift_hive_metastore.rb on lines 3474..3489
                        lib/thrift/thrift_hive_metastore.rb on lines 3515..3530
                        lib/thrift/thrift_hive_metastore.rb on lines 3701..3716
                        lib/thrift/thrift_hive_metastore.rb on lines 3735..3750
                        lib/thrift/thrift_hive_metastore.rb on lines 3771..3786
                        lib/thrift/thrift_hive_metastore.rb on lines 3805..3820

                        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 40.

                        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

                          class Renew_delegation_token_result
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            SUCCESS = 0
                            O1 = 1
                        
                        
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 10 other locations - About 45 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1857..1872
                        lib/thrift/thrift_hive_metastore.rb on lines 3015..3030
                        lib/thrift/thrift_hive_metastore.rb on lines 3357..3372
                        lib/thrift/thrift_hive_metastore.rb on lines 3391..3406
                        lib/thrift/thrift_hive_metastore.rb on lines 3474..3489
                        lib/thrift/thrift_hive_metastore.rb on lines 3515..3530
                        lib/thrift/thrift_hive_metastore.rb on lines 3667..3682
                        lib/thrift/thrift_hive_metastore.rb on lines 3701..3716
                        lib/thrift/thrift_hive_metastore.rb on lines 3735..3750
                        lib/thrift/thrift_hive_metastore.rb on lines 3771..3786

                        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 40.

                        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

                          class Drop_role_result
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            SUCCESS = 0
                            O1 = 1
                        
                        
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 10 other locations - About 45 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1857..1872
                        lib/thrift/thrift_hive_metastore.rb on lines 3015..3030
                        lib/thrift/thrift_hive_metastore.rb on lines 3357..3372
                        lib/thrift/thrift_hive_metastore.rb on lines 3474..3489
                        lib/thrift/thrift_hive_metastore.rb on lines 3515..3530
                        lib/thrift/thrift_hive_metastore.rb on lines 3667..3682
                        lib/thrift/thrift_hive_metastore.rb on lines 3701..3716
                        lib/thrift/thrift_hive_metastore.rb on lines 3735..3750
                        lib/thrift/thrift_hive_metastore.rb on lines 3771..3786
                        lib/thrift/thrift_hive_metastore.rb on lines 3805..3820

                        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 40.

                        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

                          class Grant_role_result
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            SUCCESS = 0
                            O1 = 1
                        
                        
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 10 other locations - About 45 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1857..1872
                        lib/thrift/thrift_hive_metastore.rb on lines 3015..3030
                        lib/thrift/thrift_hive_metastore.rb on lines 3357..3372
                        lib/thrift/thrift_hive_metastore.rb on lines 3391..3406
                        lib/thrift/thrift_hive_metastore.rb on lines 3515..3530
                        lib/thrift/thrift_hive_metastore.rb on lines 3667..3682
                        lib/thrift/thrift_hive_metastore.rb on lines 3701..3716
                        lib/thrift/thrift_hive_metastore.rb on lines 3735..3750
                        lib/thrift/thrift_hive_metastore.rb on lines 3771..3786
                        lib/thrift/thrift_hive_metastore.rb on lines 3805..3820

                        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 40.

                        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

                          class Revoke_role_result
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            SUCCESS = 0
                            O1 = 1
                        
                        
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 10 other locations - About 45 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1857..1872
                        lib/thrift/thrift_hive_metastore.rb on lines 3015..3030
                        lib/thrift/thrift_hive_metastore.rb on lines 3357..3372
                        lib/thrift/thrift_hive_metastore.rb on lines 3391..3406
                        lib/thrift/thrift_hive_metastore.rb on lines 3474..3489
                        lib/thrift/thrift_hive_metastore.rb on lines 3667..3682
                        lib/thrift/thrift_hive_metastore.rb on lines 3701..3716
                        lib/thrift/thrift_hive_metastore.rb on lines 3735..3750
                        lib/thrift/thrift_hive_metastore.rb on lines 3771..3786
                        lib/thrift/thrift_hive_metastore.rb on lines 3805..3820

                        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 40.

                        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 3 locations. Consider refactoring.
                        Open

                            def process_drop_table(seqid, iprot, oprot)
                              args = read_args(iprot, Drop_table_args)
                              result = Drop_table_result.new()
                              begin
                                @handler.drop_table(args.dbname, args.name, args.deleteData)
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 2 other locations - About 45 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1190..1200
                        lib/thrift/thrift_hive_metastore.rb on lines 1398..1408

                        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 39.

                        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 3 locations. Consider refactoring.
                        Open

                            def process_alter_table(seqid, iprot, oprot)
                              args = read_args(iprot, Alter_table_args)
                              result = Alter_table_result.new()
                              begin
                                @handler.alter_table(args.dbname, args.tbl_name, args.new_tbl)
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 2 other locations - About 45 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1142..1152
                        lib/thrift/thrift_hive_metastore.rb on lines 1398..1408

                        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 39.

                        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 3 locations. Consider refactoring.
                        Open

                            def process_alter_partition(seqid, iprot, oprot)
                              args = read_args(iprot, Alter_partition_args)
                              result = Alter_partition_result.new()
                              begin
                                @handler.alter_partition(args.db_name, args.tbl_name, args.new_part)
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 2 other locations - About 45 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1142..1152
                        lib/thrift/thrift_hive_metastore.rb on lines 1190..1200

                        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 39.

                        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 10 locations. Consider refactoring.
                        Open

                          class Get_fields_args
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            DB_NAME = 1
                            TABLE_NAME = 2
                        
                        
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 9 other locations - About 40 mins to fix
                        lib/thrift/facebook_service.rb on lines 480..495
                        lib/thrift/hive_metastore_types.rb on lines 29..44
                        lib/thrift/hive_metastore_types.rb on lines 268..283
                        lib/thrift/thrift_hive_metastore.rb on lines 1752..1767
                        lib/thrift/thrift_hive_metastore.rb on lines 2077..2092
                        lib/thrift/thrift_hive_metastore.rb on lines 2193..2208
                        lib/thrift/thrift_hive_metastore.rb on lines 2263..2278
                        lib/thrift/thrift_hive_metastore.rb on lines 2997..3012
                        lib/thrift/thrift_hive_metastore.rb on lines 3753..3768

                        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 38.

                        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 10 locations. Consider refactoring.
                        Open

                          class Drop_database_args
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            NAME = 1
                            DELETEDATA = 2
                        
                        
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 9 other locations - About 40 mins to fix
                        lib/thrift/facebook_service.rb on lines 480..495
                        lib/thrift/hive_metastore_types.rb on lines 29..44
                        lib/thrift/hive_metastore_types.rb on lines 268..283
                        lib/thrift/thrift_hive_metastore.rb on lines 2037..2052
                        lib/thrift/thrift_hive_metastore.rb on lines 2077..2092
                        lib/thrift/thrift_hive_metastore.rb on lines 2193..2208
                        lib/thrift/thrift_hive_metastore.rb on lines 2263..2278
                        lib/thrift/thrift_hive_metastore.rb on lines 2997..3012
                        lib/thrift/thrift_hive_metastore.rb on lines 3753..3768

                        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 38.

                        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 10 locations. Consider refactoring.
                        Open

                          class Get_config_value_args
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            NAME = 1
                            DEFAULTVALUE = 2
                        
                        
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 9 other locations - About 40 mins to fix
                        lib/thrift/facebook_service.rb on lines 480..495
                        lib/thrift/hive_metastore_types.rb on lines 29..44
                        lib/thrift/hive_metastore_types.rb on lines 268..283
                        lib/thrift/thrift_hive_metastore.rb on lines 1752..1767
                        lib/thrift/thrift_hive_metastore.rb on lines 2037..2052
                        lib/thrift/thrift_hive_metastore.rb on lines 2077..2092
                        lib/thrift/thrift_hive_metastore.rb on lines 2193..2208
                        lib/thrift/thrift_hive_metastore.rb on lines 2263..2278
                        lib/thrift/thrift_hive_metastore.rb on lines 3753..3768

                        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 38.

                        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 10 locations. Consider refactoring.
                        Open

                          class Get_delegation_token_with_signature_args
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            RENEWER_KERBEROS_PRINCIPAL_NAME = 1
                            TOKEN_SIGNATURE = 2
                        
                        
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 9 other locations - About 40 mins to fix
                        lib/thrift/facebook_service.rb on lines 480..495
                        lib/thrift/hive_metastore_types.rb on lines 29..44
                        lib/thrift/hive_metastore_types.rb on lines 268..283
                        lib/thrift/thrift_hive_metastore.rb on lines 1752..1767
                        lib/thrift/thrift_hive_metastore.rb on lines 2037..2052
                        lib/thrift/thrift_hive_metastore.rb on lines 2077..2092
                        lib/thrift/thrift_hive_metastore.rb on lines 2193..2208
                        lib/thrift/thrift_hive_metastore.rb on lines 2263..2278
                        lib/thrift/thrift_hive_metastore.rb on lines 2997..3012

                        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 38.

                        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 10 locations. Consider refactoring.
                        Open

                          class Get_table_args
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            DBNAME = 1
                            TBL_NAME = 2
                        
                        
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 9 other locations - About 40 mins to fix
                        lib/thrift/facebook_service.rb on lines 480..495
                        lib/thrift/hive_metastore_types.rb on lines 29..44
                        lib/thrift/hive_metastore_types.rb on lines 268..283
                        lib/thrift/thrift_hive_metastore.rb on lines 1752..1767
                        lib/thrift/thrift_hive_metastore.rb on lines 2037..2052
                        lib/thrift/thrift_hive_metastore.rb on lines 2077..2092
                        lib/thrift/thrift_hive_metastore.rb on lines 2193..2208
                        lib/thrift/thrift_hive_metastore.rb on lines 2997..3012
                        lib/thrift/thrift_hive_metastore.rb on lines 3753..3768

                        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 38.

                        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 10 locations. Consider refactoring.
                        Open

                          class Get_schema_args
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            DB_NAME = 1
                            TABLE_NAME = 2
                        
                        
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 9 other locations - About 40 mins to fix
                        lib/thrift/facebook_service.rb on lines 480..495
                        lib/thrift/hive_metastore_types.rb on lines 29..44
                        lib/thrift/hive_metastore_types.rb on lines 268..283
                        lib/thrift/thrift_hive_metastore.rb on lines 1752..1767
                        lib/thrift/thrift_hive_metastore.rb on lines 2037..2052
                        lib/thrift/thrift_hive_metastore.rb on lines 2193..2208
                        lib/thrift/thrift_hive_metastore.rb on lines 2263..2278
                        lib/thrift/thrift_hive_metastore.rb on lines 2997..3012
                        lib/thrift/thrift_hive_metastore.rb on lines 3753..3768

                        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 38.

                        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 10 locations. Consider refactoring.
                        Open

                          class Get_tables_args
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            DB_NAME = 1
                            PATTERN = 2
                        
                        
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 9 other locations - About 40 mins to fix
                        lib/thrift/facebook_service.rb on lines 480..495
                        lib/thrift/hive_metastore_types.rb on lines 29..44
                        lib/thrift/hive_metastore_types.rb on lines 268..283
                        lib/thrift/thrift_hive_metastore.rb on lines 1752..1767
                        lib/thrift/thrift_hive_metastore.rb on lines 2037..2052
                        lib/thrift/thrift_hive_metastore.rb on lines 2077..2092
                        lib/thrift/thrift_hive_metastore.rb on lines 2263..2278
                        lib/thrift/thrift_hive_metastore.rb on lines 2997..3012
                        lib/thrift/thrift_hive_metastore.rb on lines 3753..3768

                        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 38.

                        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 3 locations. Consider refactoring.
                        Open

                            def process_get_type(seqid, iprot, oprot)
                              args = read_args(iprot, Get_type_args)
                              result = Get_type_result.new()
                              begin
                                result.success = @handler.get_type(args.name)
                        Severity: Minor
                        Found in lib/thrift/thrift_hive_metastore.rb and 2 other locations - About 40 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 980..990
                        lib/thrift/thrift_hive_metastore.rb on lines 1071..1081

                        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 37.

                        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 3 locations. Consider refactoring.
                        Open

                            def process_get_database(seqid, iprot, oprot)
                              args = read_args(iprot, Get_database_args)
                              result = Get_database_result.new()
                              begin
                                result.success = @handler.get_database(args.name)
                        Severity: Minor
                        Found in lib/thrift/thrift_hive_metastore.rb and 2 other locations - About 40 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1043..1053
                        lib/thrift/thrift_hive_metastore.rb on lines 1071..1081

                        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 37.

                        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 3 locations. Consider refactoring.
                        Open

                            def process_drop_type(seqid, iprot, oprot)
                              args = read_args(iprot, Drop_type_args)
                              result = Drop_type_result.new()
                              begin
                                result.success = @handler.drop_type(args.type)
                        Severity: Minor
                        Found in lib/thrift/thrift_hive_metastore.rb and 2 other locations - About 40 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 980..990
                        lib/thrift/thrift_hive_metastore.rb on lines 1043..1053

                        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 37.

                        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 2 locations. Consider refactoring.
                        Open

                            def process_get_partition_names_ps(seqid, iprot, oprot)
                              args = read_args(iprot, Get_partition_names_ps_args)
                              result = Get_partition_names_ps_result.new()
                              begin
                                result.success = @handler.get_partition_names_ps(args.db_name, args.tbl_name, args.part_vals, args.max_parts)
                        Severity: Minor
                        Found in lib/thrift/thrift_hive_metastore.rb and 1 other location - About 35 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1350..1358

                        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 35.

                        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 2 locations. Consider refactoring.
                        Open

                            def process_get_partitions_ps(seqid, iprot, oprot)
                              args = read_args(iprot, Get_partitions_ps_args)
                              result = Get_partitions_ps_result.new()
                              begin
                                result.success = @handler.get_partitions_ps(args.db_name, args.tbl_name, args.part_vals, args.max_parts)
                        Severity: Minor
                        Found in lib/thrift/thrift_hive_metastore.rb and 1 other location - About 35 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1374..1382

                        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 35.

                        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 16 locations. Consider refactoring.
                        Open

                            def recv_drop_partition()
                              result = receive_message(Drop_partition_result)
                              return result.success unless result.success.nil?
                              raise result.o1 unless result.o1.nil?
                              raise result.o2 unless result.o2.nil?
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 15 other locations - About 35 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 41..46
                        lib/thrift/thrift_hive_metastore.rb on lines 123..128
                        lib/thrift/thrift_hive_metastore.rb on lines 158..163
                        lib/thrift/thrift_hive_metastore.rb on lines 293..298
                        lib/thrift/thrift_hive_metastore.rb on lines 397..402
                        lib/thrift/thrift_hive_metastore.rb on lines 414..419
                        lib/thrift/thrift_hive_metastore.rb on lines 431..436
                        lib/thrift/thrift_hive_metastore.rb on lines 448..453
                        lib/thrift/thrift_hive_metastore.rb on lines 465..470
                        lib/thrift/thrift_hive_metastore.rb on lines 482..487
                        lib/thrift/thrift_hive_metastore.rb on lines 531..536
                        lib/thrift/thrift_hive_metastore.rb on lines 564..569
                        lib/thrift/thrift_hive_metastore.rb on lines 679..684
                        lib/thrift/thrift_hive_metastore.rb on lines 696..701
                        lib/thrift/thrift_hive_metastore.rb on lines 713..718

                        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 34.

                        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 16 locations. Consider refactoring.
                        Open

                            def recv_drop_index_by_name()
                              result = receive_message(Drop_index_by_name_result)
                              return result.success unless result.success.nil?
                              raise result.o1 unless result.o1.nil?
                              raise result.o2 unless result.o2.nil?
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 15 other locations - About 35 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 41..46
                        lib/thrift/thrift_hive_metastore.rb on lines 123..128
                        lib/thrift/thrift_hive_metastore.rb on lines 158..163
                        lib/thrift/thrift_hive_metastore.rb on lines 293..298
                        lib/thrift/thrift_hive_metastore.rb on lines 380..385
                        lib/thrift/thrift_hive_metastore.rb on lines 397..402
                        lib/thrift/thrift_hive_metastore.rb on lines 414..419
                        lib/thrift/thrift_hive_metastore.rb on lines 431..436
                        lib/thrift/thrift_hive_metastore.rb on lines 448..453
                        lib/thrift/thrift_hive_metastore.rb on lines 465..470
                        lib/thrift/thrift_hive_metastore.rb on lines 482..487
                        lib/thrift/thrift_hive_metastore.rb on lines 531..536
                        lib/thrift/thrift_hive_metastore.rb on lines 564..569
                        lib/thrift/thrift_hive_metastore.rb on lines 696..701
                        lib/thrift/thrift_hive_metastore.rb on lines 713..718

                        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 34.

                        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 16 locations. Consider refactoring.
                        Open

                            def recv_get_partitions_with_auth()
                              result = receive_message(Get_partitions_with_auth_result)
                              return result.success unless result.success.nil?
                              raise result.o1 unless result.o1.nil?
                              raise result.o2 unless result.o2.nil?
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 15 other locations - About 35 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 41..46
                        lib/thrift/thrift_hive_metastore.rb on lines 123..128
                        lib/thrift/thrift_hive_metastore.rb on lines 158..163
                        lib/thrift/thrift_hive_metastore.rb on lines 293..298
                        lib/thrift/thrift_hive_metastore.rb on lines 380..385
                        lib/thrift/thrift_hive_metastore.rb on lines 397..402
                        lib/thrift/thrift_hive_metastore.rb on lines 414..419
                        lib/thrift/thrift_hive_metastore.rb on lines 431..436
                        lib/thrift/thrift_hive_metastore.rb on lines 448..453
                        lib/thrift/thrift_hive_metastore.rb on lines 465..470
                        lib/thrift/thrift_hive_metastore.rb on lines 531..536
                        lib/thrift/thrift_hive_metastore.rb on lines 564..569
                        lib/thrift/thrift_hive_metastore.rb on lines 679..684
                        lib/thrift/thrift_hive_metastore.rb on lines 696..701
                        lib/thrift/thrift_hive_metastore.rb on lines 713..718

                        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 34.

                        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 16 locations. Consider refactoring.
                        Open

                            def recv_get_partitions_ps_with_auth()
                              result = receive_message(Get_partitions_ps_with_auth_result)
                              return result.success unless result.success.nil?
                              raise result.o1 unless result.o1.nil?
                              raise result.o2 unless result.o2.nil?
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 15 other locations - About 35 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 41..46
                        lib/thrift/thrift_hive_metastore.rb on lines 123..128
                        lib/thrift/thrift_hive_metastore.rb on lines 158..163
                        lib/thrift/thrift_hive_metastore.rb on lines 293..298
                        lib/thrift/thrift_hive_metastore.rb on lines 380..385
                        lib/thrift/thrift_hive_metastore.rb on lines 397..402
                        lib/thrift/thrift_hive_metastore.rb on lines 414..419
                        lib/thrift/thrift_hive_metastore.rb on lines 431..436
                        lib/thrift/thrift_hive_metastore.rb on lines 448..453
                        lib/thrift/thrift_hive_metastore.rb on lines 465..470
                        lib/thrift/thrift_hive_metastore.rb on lines 482..487
                        lib/thrift/thrift_hive_metastore.rb on lines 564..569
                        lib/thrift/thrift_hive_metastore.rb on lines 679..684
                        lib/thrift/thrift_hive_metastore.rb on lines 696..701
                        lib/thrift/thrift_hive_metastore.rb on lines 713..718

                        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 34.

                        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 16 locations. Consider refactoring.
                        Open

                            def recv_get_type()
                              result = receive_message(Get_type_result)
                              return result.success unless result.success.nil?
                              raise result.o1 unless result.o1.nil?
                              raise result.o2 unless result.o2.nil?
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 15 other locations - About 35 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 41..46
                        lib/thrift/thrift_hive_metastore.rb on lines 158..163
                        lib/thrift/thrift_hive_metastore.rb on lines 293..298
                        lib/thrift/thrift_hive_metastore.rb on lines 380..385
                        lib/thrift/thrift_hive_metastore.rb on lines 397..402
                        lib/thrift/thrift_hive_metastore.rb on lines 414..419
                        lib/thrift/thrift_hive_metastore.rb on lines 431..436
                        lib/thrift/thrift_hive_metastore.rb on lines 448..453
                        lib/thrift/thrift_hive_metastore.rb on lines 465..470
                        lib/thrift/thrift_hive_metastore.rb on lines 482..487
                        lib/thrift/thrift_hive_metastore.rb on lines 531..536
                        lib/thrift/thrift_hive_metastore.rb on lines 564..569
                        lib/thrift/thrift_hive_metastore.rb on lines 679..684
                        lib/thrift/thrift_hive_metastore.rb on lines 696..701
                        lib/thrift/thrift_hive_metastore.rb on lines 713..718

                        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 34.

                        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 16 locations. Consider refactoring.
                        Open

                            def recv_get_partitions()
                              result = receive_message(Get_partitions_result)
                              return result.success unless result.success.nil?
                              raise result.o1 unless result.o1.nil?
                              raise result.o2 unless result.o2.nil?
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 15 other locations - About 35 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 41..46
                        lib/thrift/thrift_hive_metastore.rb on lines 123..128
                        lib/thrift/thrift_hive_metastore.rb on lines 158..163
                        lib/thrift/thrift_hive_metastore.rb on lines 293..298
                        lib/thrift/thrift_hive_metastore.rb on lines 380..385
                        lib/thrift/thrift_hive_metastore.rb on lines 397..402
                        lib/thrift/thrift_hive_metastore.rb on lines 414..419
                        lib/thrift/thrift_hive_metastore.rb on lines 431..436
                        lib/thrift/thrift_hive_metastore.rb on lines 448..453
                        lib/thrift/thrift_hive_metastore.rb on lines 482..487
                        lib/thrift/thrift_hive_metastore.rb on lines 531..536
                        lib/thrift/thrift_hive_metastore.rb on lines 564..569
                        lib/thrift/thrift_hive_metastore.rb on lines 679..684
                        lib/thrift/thrift_hive_metastore.rb on lines 696..701
                        lib/thrift/thrift_hive_metastore.rb on lines 713..718

                        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 34.

                        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 16 locations. Consider refactoring.
                        Open

                            def recv_get_partition_with_auth()
                              result = receive_message(Get_partition_with_auth_result)
                              return result.success unless result.success.nil?
                              raise result.o1 unless result.o1.nil?
                              raise result.o2 unless result.o2.nil?
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 15 other locations - About 35 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 41..46
                        lib/thrift/thrift_hive_metastore.rb on lines 123..128
                        lib/thrift/thrift_hive_metastore.rb on lines 158..163
                        lib/thrift/thrift_hive_metastore.rb on lines 293..298
                        lib/thrift/thrift_hive_metastore.rb on lines 380..385
                        lib/thrift/thrift_hive_metastore.rb on lines 397..402
                        lib/thrift/thrift_hive_metastore.rb on lines 414..419
                        lib/thrift/thrift_hive_metastore.rb on lines 448..453
                        lib/thrift/thrift_hive_metastore.rb on lines 465..470
                        lib/thrift/thrift_hive_metastore.rb on lines 482..487
                        lib/thrift/thrift_hive_metastore.rb on lines 531..536
                        lib/thrift/thrift_hive_metastore.rb on lines 564..569
                        lib/thrift/thrift_hive_metastore.rb on lines 679..684
                        lib/thrift/thrift_hive_metastore.rb on lines 696..701
                        lib/thrift/thrift_hive_metastore.rb on lines 713..718

                        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 34.

                        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 16 locations. Consider refactoring.
                        Open

                            def recv_get_database()
                              result = receive_message(Get_database_result)
                              return result.success unless result.success.nil?
                              raise result.o1 unless result.o1.nil?
                              raise result.o2 unless result.o2.nil?
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 15 other locations - About 35 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 123..128
                        lib/thrift/thrift_hive_metastore.rb on lines 158..163
                        lib/thrift/thrift_hive_metastore.rb on lines 293..298
                        lib/thrift/thrift_hive_metastore.rb on lines 380..385
                        lib/thrift/thrift_hive_metastore.rb on lines 397..402
                        lib/thrift/thrift_hive_metastore.rb on lines 414..419
                        lib/thrift/thrift_hive_metastore.rb on lines 431..436
                        lib/thrift/thrift_hive_metastore.rb on lines 448..453
                        lib/thrift/thrift_hive_metastore.rb on lines 465..470
                        lib/thrift/thrift_hive_metastore.rb on lines 482..487
                        lib/thrift/thrift_hive_metastore.rb on lines 531..536
                        lib/thrift/thrift_hive_metastore.rb on lines 564..569
                        lib/thrift/thrift_hive_metastore.rb on lines 679..684
                        lib/thrift/thrift_hive_metastore.rb on lines 696..701
                        lib/thrift/thrift_hive_metastore.rb on lines 713..718

                        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 34.

                        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 16 locations. Consider refactoring.
                        Open

                            def recv_get_partitions_by_filter()
                              result = receive_message(Get_partitions_by_filter_result)
                              return result.success unless result.success.nil?
                              raise result.o1 unless result.o1.nil?
                              raise result.o2 unless result.o2.nil?
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 15 other locations - About 35 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 41..46
                        lib/thrift/thrift_hive_metastore.rb on lines 123..128
                        lib/thrift/thrift_hive_metastore.rb on lines 158..163
                        lib/thrift/thrift_hive_metastore.rb on lines 293..298
                        lib/thrift/thrift_hive_metastore.rb on lines 380..385
                        lib/thrift/thrift_hive_metastore.rb on lines 397..402
                        lib/thrift/thrift_hive_metastore.rb on lines 414..419
                        lib/thrift/thrift_hive_metastore.rb on lines 431..436
                        lib/thrift/thrift_hive_metastore.rb on lines 448..453
                        lib/thrift/thrift_hive_metastore.rb on lines 465..470
                        lib/thrift/thrift_hive_metastore.rb on lines 482..487
                        lib/thrift/thrift_hive_metastore.rb on lines 531..536
                        lib/thrift/thrift_hive_metastore.rb on lines 679..684
                        lib/thrift/thrift_hive_metastore.rb on lines 696..701
                        lib/thrift/thrift_hive_metastore.rb on lines 713..718

                        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 34.

                        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 16 locations. Consider refactoring.
                        Open

                            def recv_get_index_by_name()
                              result = receive_message(Get_index_by_name_result)
                              return result.success unless result.success.nil?
                              raise result.o1 unless result.o1.nil?
                              raise result.o2 unless result.o2.nil?
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 15 other locations - About 35 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 41..46
                        lib/thrift/thrift_hive_metastore.rb on lines 123..128
                        lib/thrift/thrift_hive_metastore.rb on lines 158..163
                        lib/thrift/thrift_hive_metastore.rb on lines 293..298
                        lib/thrift/thrift_hive_metastore.rb on lines 380..385
                        lib/thrift/thrift_hive_metastore.rb on lines 397..402
                        lib/thrift/thrift_hive_metastore.rb on lines 414..419
                        lib/thrift/thrift_hive_metastore.rb on lines 431..436
                        lib/thrift/thrift_hive_metastore.rb on lines 448..453
                        lib/thrift/thrift_hive_metastore.rb on lines 465..470
                        lib/thrift/thrift_hive_metastore.rb on lines 482..487
                        lib/thrift/thrift_hive_metastore.rb on lines 531..536
                        lib/thrift/thrift_hive_metastore.rb on lines 564..569
                        lib/thrift/thrift_hive_metastore.rb on lines 679..684
                        lib/thrift/thrift_hive_metastore.rb on lines 713..718

                        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 34.

                        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 16 locations. Consider refactoring.
                        Open

                            def recv_drop_partition_by_name()
                              result = receive_message(Drop_partition_by_name_result)
                              return result.success unless result.success.nil?
                              raise result.o1 unless result.o1.nil?
                              raise result.o2 unless result.o2.nil?
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 15 other locations - About 35 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 41..46
                        lib/thrift/thrift_hive_metastore.rb on lines 123..128
                        lib/thrift/thrift_hive_metastore.rb on lines 158..163
                        lib/thrift/thrift_hive_metastore.rb on lines 293..298
                        lib/thrift/thrift_hive_metastore.rb on lines 380..385
                        lib/thrift/thrift_hive_metastore.rb on lines 414..419
                        lib/thrift/thrift_hive_metastore.rb on lines 431..436
                        lib/thrift/thrift_hive_metastore.rb on lines 448..453
                        lib/thrift/thrift_hive_metastore.rb on lines 465..470
                        lib/thrift/thrift_hive_metastore.rb on lines 482..487
                        lib/thrift/thrift_hive_metastore.rb on lines 531..536
                        lib/thrift/thrift_hive_metastore.rb on lines 564..569
                        lib/thrift/thrift_hive_metastore.rb on lines 679..684
                        lib/thrift/thrift_hive_metastore.rb on lines 696..701
                        lib/thrift/thrift_hive_metastore.rb on lines 713..718

                        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 34.

                        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 16 locations. Consider refactoring.
                        Open

                            def recv_get_partition()
                              result = receive_message(Get_partition_result)
                              return result.success unless result.success.nil?
                              raise result.o1 unless result.o1.nil?
                              raise result.o2 unless result.o2.nil?
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 15 other locations - About 35 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 41..46
                        lib/thrift/thrift_hive_metastore.rb on lines 123..128
                        lib/thrift/thrift_hive_metastore.rb on lines 158..163
                        lib/thrift/thrift_hive_metastore.rb on lines 293..298
                        lib/thrift/thrift_hive_metastore.rb on lines 380..385
                        lib/thrift/thrift_hive_metastore.rb on lines 397..402
                        lib/thrift/thrift_hive_metastore.rb on lines 431..436
                        lib/thrift/thrift_hive_metastore.rb on lines 448..453
                        lib/thrift/thrift_hive_metastore.rb on lines 465..470
                        lib/thrift/thrift_hive_metastore.rb on lines 482..487
                        lib/thrift/thrift_hive_metastore.rb on lines 531..536
                        lib/thrift/thrift_hive_metastore.rb on lines 564..569
                        lib/thrift/thrift_hive_metastore.rb on lines 679..684
                        lib/thrift/thrift_hive_metastore.rb on lines 696..701
                        lib/thrift/thrift_hive_metastore.rb on lines 713..718

                        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 34.

                        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 16 locations. Consider refactoring.
                        Open

                            def recv_drop_type()
                              result = receive_message(Drop_type_result)
                              return result.success unless result.success.nil?
                              raise result.o1 unless result.o1.nil?
                              raise result.o2 unless result.o2.nil?
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 15 other locations - About 35 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 41..46
                        lib/thrift/thrift_hive_metastore.rb on lines 123..128
                        lib/thrift/thrift_hive_metastore.rb on lines 293..298
                        lib/thrift/thrift_hive_metastore.rb on lines 380..385
                        lib/thrift/thrift_hive_metastore.rb on lines 397..402
                        lib/thrift/thrift_hive_metastore.rb on lines 414..419
                        lib/thrift/thrift_hive_metastore.rb on lines 431..436
                        lib/thrift/thrift_hive_metastore.rb on lines 448..453
                        lib/thrift/thrift_hive_metastore.rb on lines 465..470
                        lib/thrift/thrift_hive_metastore.rb on lines 482..487
                        lib/thrift/thrift_hive_metastore.rb on lines 531..536
                        lib/thrift/thrift_hive_metastore.rb on lines 564..569
                        lib/thrift/thrift_hive_metastore.rb on lines 679..684
                        lib/thrift/thrift_hive_metastore.rb on lines 696..701
                        lib/thrift/thrift_hive_metastore.rb on lines 713..718

                        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 34.

                        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 16 locations. Consider refactoring.
                        Open

                            def recv_get_partition_by_name()
                              result = receive_message(Get_partition_by_name_result)
                              return result.success unless result.success.nil?
                              raise result.o1 unless result.o1.nil?
                              raise result.o2 unless result.o2.nil?
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 15 other locations - About 35 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 41..46
                        lib/thrift/thrift_hive_metastore.rb on lines 123..128
                        lib/thrift/thrift_hive_metastore.rb on lines 158..163
                        lib/thrift/thrift_hive_metastore.rb on lines 293..298
                        lib/thrift/thrift_hive_metastore.rb on lines 380..385
                        lib/thrift/thrift_hive_metastore.rb on lines 397..402
                        lib/thrift/thrift_hive_metastore.rb on lines 414..419
                        lib/thrift/thrift_hive_metastore.rb on lines 431..436
                        lib/thrift/thrift_hive_metastore.rb on lines 465..470
                        lib/thrift/thrift_hive_metastore.rb on lines 482..487
                        lib/thrift/thrift_hive_metastore.rb on lines 531..536
                        lib/thrift/thrift_hive_metastore.rb on lines 564..569
                        lib/thrift/thrift_hive_metastore.rb on lines 679..684
                        lib/thrift/thrift_hive_metastore.rb on lines 696..701
                        lib/thrift/thrift_hive_metastore.rb on lines 713..718

                        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 34.

                        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 16 locations. Consider refactoring.
                        Open

                            def recv_get_table()
                              result = receive_message(Get_table_result)
                              return result.success unless result.success.nil?
                              raise result.o1 unless result.o1.nil?
                              raise result.o2 unless result.o2.nil?
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 15 other locations - About 35 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 41..46
                        lib/thrift/thrift_hive_metastore.rb on lines 123..128
                        lib/thrift/thrift_hive_metastore.rb on lines 158..163
                        lib/thrift/thrift_hive_metastore.rb on lines 380..385
                        lib/thrift/thrift_hive_metastore.rb on lines 397..402
                        lib/thrift/thrift_hive_metastore.rb on lines 414..419
                        lib/thrift/thrift_hive_metastore.rb on lines 431..436
                        lib/thrift/thrift_hive_metastore.rb on lines 448..453
                        lib/thrift/thrift_hive_metastore.rb on lines 465..470
                        lib/thrift/thrift_hive_metastore.rb on lines 482..487
                        lib/thrift/thrift_hive_metastore.rb on lines 531..536
                        lib/thrift/thrift_hive_metastore.rb on lines 564..569
                        lib/thrift/thrift_hive_metastore.rb on lines 679..684
                        lib/thrift/thrift_hive_metastore.rb on lines 696..701
                        lib/thrift/thrift_hive_metastore.rb on lines 713..718

                        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 34.

                        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 16 locations. Consider refactoring.
                        Open

                            def recv_get_indexes()
                              result = receive_message(Get_indexes_result)
                              return result.success unless result.success.nil?
                              raise result.o1 unless result.o1.nil?
                              raise result.o2 unless result.o2.nil?
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 15 other locations - About 35 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 41..46
                        lib/thrift/thrift_hive_metastore.rb on lines 123..128
                        lib/thrift/thrift_hive_metastore.rb on lines 158..163
                        lib/thrift/thrift_hive_metastore.rb on lines 293..298
                        lib/thrift/thrift_hive_metastore.rb on lines 380..385
                        lib/thrift/thrift_hive_metastore.rb on lines 397..402
                        lib/thrift/thrift_hive_metastore.rb on lines 414..419
                        lib/thrift/thrift_hive_metastore.rb on lines 431..436
                        lib/thrift/thrift_hive_metastore.rb on lines 448..453
                        lib/thrift/thrift_hive_metastore.rb on lines 465..470
                        lib/thrift/thrift_hive_metastore.rb on lines 482..487
                        lib/thrift/thrift_hive_metastore.rb on lines 531..536
                        lib/thrift/thrift_hive_metastore.rb on lines 564..569
                        lib/thrift/thrift_hive_metastore.rb on lines 679..684
                        lib/thrift/thrift_hive_metastore.rb on lines 696..701

                        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 34.

                        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 5 locations. Consider refactoring.
                        Open

                            def process_get_index_names(seqid, iprot, oprot)
                              args = read_args(iprot, Get_index_names_args)
                              result = Get_index_names_result.new()
                              begin
                                result.success = @handler.get_index_names(args.db_name, args.tbl_name, args.max_indexes)
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 4 other locations - About 30 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1339..1347
                        lib/thrift/thrift_hive_metastore.rb on lines 1566..1574
                        lib/thrift/thrift_hive_metastore.rb on lines 1588..1596
                        lib/thrift/thrift_hive_metastore.rb on lines 1599..1607

                        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 33.

                        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 5 locations. Consider refactoring.
                        Open

                            def process_get_privilege_set(seqid, iprot, oprot)
                              args = read_args(iprot, Get_privilege_set_args)
                              result = Get_privilege_set_result.new()
                              begin
                                result.success = @handler.get_privilege_set(args.hiveObject, args.user_name, args.group_names)
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 4 other locations - About 30 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1339..1347
                        lib/thrift/thrift_hive_metastore.rb on lines 1511..1519
                        lib/thrift/thrift_hive_metastore.rb on lines 1566..1574
                        lib/thrift/thrift_hive_metastore.rb on lines 1599..1607

                        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 33.

                        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 5 locations. Consider refactoring.
                        Open

                            def process_list_privileges(seqid, iprot, oprot)
                              args = read_args(iprot, List_privileges_args)
                              result = List_privileges_result.new()
                              begin
                                result.success = @handler.list_privileges(args.principal_name, args.principal_type, args.hiveObject)
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 4 other locations - About 30 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1339..1347
                        lib/thrift/thrift_hive_metastore.rb on lines 1511..1519
                        lib/thrift/thrift_hive_metastore.rb on lines 1566..1574
                        lib/thrift/thrift_hive_metastore.rb on lines 1588..1596

                        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 33.

                        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 5 locations. Consider refactoring.
                        Open

                            def process_get_partition_names(seqid, iprot, oprot)
                              args = read_args(iprot, Get_partition_names_args)
                              result = Get_partition_names_result.new()
                              begin
                                result.success = @handler.get_partition_names(args.db_name, args.tbl_name, args.max_parts)
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 4 other locations - About 30 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1511..1519
                        lib/thrift/thrift_hive_metastore.rb on lines 1566..1574
                        lib/thrift/thrift_hive_metastore.rb on lines 1588..1596
                        lib/thrift/thrift_hive_metastore.rb on lines 1599..1607

                        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 33.

                        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 5 locations. Consider refactoring.
                        Open

                            def process_revoke_role(seqid, iprot, oprot)
                              args = read_args(iprot, Revoke_role_args)
                              result = Revoke_role_result.new()
                              begin
                                result.success = @handler.revoke_role(args.role_name, args.principal_name, args.principal_type)
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 4 other locations - About 30 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1339..1347
                        lib/thrift/thrift_hive_metastore.rb on lines 1511..1519
                        lib/thrift/thrift_hive_metastore.rb on lines 1588..1596
                        lib/thrift/thrift_hive_metastore.rb on lines 1599..1607

                        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 33.

                        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 4 locations. Consider refactoring.
                        Open

                            def process_get_tables(seqid, iprot, oprot)
                              args = read_args(iprot, Get_tables_args)
                              result = Get_tables_result.new()
                              begin
                                result.success = @handler.get_tables(args.db_name, args.pattern)
                        Severity: Minor
                        Found in lib/thrift/thrift_hive_metastore.rb and 3 other locations - About 25 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1411..1419
                        lib/thrift/thrift_hive_metastore.rb on lines 1577..1585
                        lib/thrift/thrift_hive_metastore.rb on lines 1643..1651

                        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 31.

                        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 4 locations. Consider refactoring.
                        Open

                            def process_get_delegation_token_with_signature(seqid, iprot, oprot)
                              args = read_args(iprot, Get_delegation_token_with_signature_args)
                              result = Get_delegation_token_with_signature_result.new()
                              begin
                                result.success = @handler.get_delegation_token_with_signature(args.renewer_kerberos_principal_name, args.token_signature)
                        Severity: Minor
                        Found in lib/thrift/thrift_hive_metastore.rb and 3 other locations - About 25 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1155..1163
                        lib/thrift/thrift_hive_metastore.rb on lines 1411..1419
                        lib/thrift/thrift_hive_metastore.rb on lines 1577..1585

                        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 31.

                        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 4 locations. Consider refactoring.
                        Open

                            def process_get_config_value(seqid, iprot, oprot)
                              args = read_args(iprot, Get_config_value_args)
                              result = Get_config_value_result.new()
                              begin
                                result.success = @handler.get_config_value(args.name, args.defaultValue)
                        Severity: Minor
                        Found in lib/thrift/thrift_hive_metastore.rb and 3 other locations - About 25 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1155..1163
                        lib/thrift/thrift_hive_metastore.rb on lines 1577..1585
                        lib/thrift/thrift_hive_metastore.rb on lines 1643..1651

                        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 31.

                        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 4 locations. Consider refactoring.
                        Open

                            def process_list_roles(seqid, iprot, oprot)
                              args = read_args(iprot, List_roles_args)
                              result = List_roles_result.new()
                              begin
                                result.success = @handler.list_roles(args.principal_name, args.principal_type)
                        Severity: Minor
                        Found in lib/thrift/thrift_hive_metastore.rb and 3 other locations - About 25 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1155..1163
                        lib/thrift/thrift_hive_metastore.rb on lines 1411..1419
                        lib/thrift/thrift_hive_metastore.rb on lines 1643..1651

                        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 31.

                        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 8 locations. Consider refactoring.
                        Open

                          class Create_type_args
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            TYPE = 1
                        
                            FIELDS = {
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 7 other locations - About 25 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1680..1693
                        lib/thrift/thrift_hive_metastore.rb on lines 2117..2130
                        lib/thrift/thrift_hive_metastore.rb on lines 2339..2352
                        lib/thrift/thrift_hive_metastore.rb on lines 3341..3354
                        lib/thrift/thrift_hive_metastore.rb on lines 3651..3664
                        lib/thrift/thrift_hive_metastore.rb on lines 3685..3698
                        lib/thrift/thrift_hive_metastore.rb on lines 3839..3852

                        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 30.

                        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 8 locations. Consider refactoring.
                        Open

                          class Add_partition_args
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            NEW_PART = 1
                        
                            FIELDS = {
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 7 other locations - About 25 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1680..1693
                        lib/thrift/thrift_hive_metastore.rb on lines 1929..1942
                        lib/thrift/thrift_hive_metastore.rb on lines 2117..2130
                        lib/thrift/thrift_hive_metastore.rb on lines 3341..3354
                        lib/thrift/thrift_hive_metastore.rb on lines 3651..3664
                        lib/thrift/thrift_hive_metastore.rb on lines 3685..3698
                        lib/thrift/thrift_hive_metastore.rb on lines 3839..3852

                        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 30.

                        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 8 locations. Consider refactoring.
                        Open

                          class Create_table_args
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            TBL = 1
                        
                            FIELDS = {
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 7 other locations - About 25 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1680..1693
                        lib/thrift/thrift_hive_metastore.rb on lines 1929..1942
                        lib/thrift/thrift_hive_metastore.rb on lines 2339..2352
                        lib/thrift/thrift_hive_metastore.rb on lines 3341..3354
                        lib/thrift/thrift_hive_metastore.rb on lines 3651..3664
                        lib/thrift/thrift_hive_metastore.rb on lines 3685..3698
                        lib/thrift/thrift_hive_metastore.rb on lines 3839..3852

                        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 30.

                        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 8 locations. Consider refactoring.
                        Open

                          class Create_role_args
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            ROLE = 1
                        
                            FIELDS = {
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 7 other locations - About 25 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1680..1693
                        lib/thrift/thrift_hive_metastore.rb on lines 1929..1942
                        lib/thrift/thrift_hive_metastore.rb on lines 2117..2130
                        lib/thrift/thrift_hive_metastore.rb on lines 2339..2352
                        lib/thrift/thrift_hive_metastore.rb on lines 3651..3664
                        lib/thrift/thrift_hive_metastore.rb on lines 3685..3698
                        lib/thrift/thrift_hive_metastore.rb on lines 3839..3852

                        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 30.

                        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 8 locations. Consider refactoring.
                        Open

                          class Revoke_privileges_args
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            PRIVILEGES = 1
                        
                            FIELDS = {
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 7 other locations - About 25 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1680..1693
                        lib/thrift/thrift_hive_metastore.rb on lines 1929..1942
                        lib/thrift/thrift_hive_metastore.rb on lines 2117..2130
                        lib/thrift/thrift_hive_metastore.rb on lines 2339..2352
                        lib/thrift/thrift_hive_metastore.rb on lines 3341..3354
                        lib/thrift/thrift_hive_metastore.rb on lines 3651..3664
                        lib/thrift/thrift_hive_metastore.rb on lines 3839..3852

                        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 30.

                        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 8 locations. Consider refactoring.
                        Open

                          class Create_database_args
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            DATABASE = 1
                        
                            FIELDS = {
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 7 other locations - About 25 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1929..1942
                        lib/thrift/thrift_hive_metastore.rb on lines 2117..2130
                        lib/thrift/thrift_hive_metastore.rb on lines 2339..2352
                        lib/thrift/thrift_hive_metastore.rb on lines 3341..3354
                        lib/thrift/thrift_hive_metastore.rb on lines 3651..3664
                        lib/thrift/thrift_hive_metastore.rb on lines 3685..3698
                        lib/thrift/thrift_hive_metastore.rb on lines 3839..3852

                        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 30.

                        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 8 locations. Consider refactoring.
                        Open

                          class Cancel_delegation_token_result
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            O1 = 1
                        
                            FIELDS = {
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 7 other locations - About 25 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1680..1693
                        lib/thrift/thrift_hive_metastore.rb on lines 1929..1942
                        lib/thrift/thrift_hive_metastore.rb on lines 2117..2130
                        lib/thrift/thrift_hive_metastore.rb on lines 2339..2352
                        lib/thrift/thrift_hive_metastore.rb on lines 3341..3354
                        lib/thrift/thrift_hive_metastore.rb on lines 3651..3664
                        lib/thrift/thrift_hive_metastore.rb on lines 3685..3698

                        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 30.

                        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 8 locations. Consider refactoring.
                        Open

                          class Grant_privileges_args
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            PRIVILEGES = 1
                        
                            FIELDS = {
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 7 other locations - About 25 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1680..1693
                        lib/thrift/thrift_hive_metastore.rb on lines 1929..1942
                        lib/thrift/thrift_hive_metastore.rb on lines 2117..2130
                        lib/thrift/thrift_hive_metastore.rb on lines 2339..2352
                        lib/thrift/thrift_hive_metastore.rb on lines 3341..3354
                        lib/thrift/thrift_hive_metastore.rb on lines 3685..3698
                        lib/thrift/thrift_hive_metastore.rb on lines 3839..3852

                        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 30.

                        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_databases(seqid, iprot, oprot)
                              args = read_args(iprot, Get_databases_args)
                              result = Get_databases_result.new()
                              begin
                                result.success = @handler.get_databases(args.pattern)
                        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 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
                        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_type_all(seqid, iprot, oprot)
                              args = read_args(iprot, Get_type_all_args)
                              result = Get_type_all_result.new()
                              begin
                                result.success = @handler.get_type_all(args.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 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
                        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_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 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 11 locations. Consider refactoring.
                        Open

                            def process_create_role(seqid, iprot, oprot)
                              args = read_args(iprot, Create_role_args)
                              result = Create_role_result.new()
                              begin
                                result.success = @handler.create_role(args.role)
                        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 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_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_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 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_revoke_privileges(seqid, iprot, oprot)
                              args = read_args(iprot, Revoke_privileges_args)
                              result = Revoke_privileges_result.new()
                              begin
                                result.success = @handler.revoke_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 1610..1618
                        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 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_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 Get_type_all_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 1893..1906
                        lib/thrift/thrift_hive_metastore.rb on lines 1967..1980
                        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 Get_delegation_token_args
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            RENEWER_KERBEROS_PRINCIPAL_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 3067..3080
                        lib/thrift/thrift_hive_metastore.rb on lines 3375..3388
                        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 Cancel_delegation_token_args
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            TOKEN_STR_FORM = 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 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

                        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

                        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 Renew_delegation_token_args
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            TOKEN_STR_FORM = 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 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 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 Drop_type_args
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            TYPE = 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 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 Drop_role_args
                            include ::Thrift::Struct, ::Thrift::Struct_Union
                            ROLE_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 3067..3080
                        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 32 locations. Consider refactoring.
                        Open

                            def recv_get_partition_names_ps()
                              result = receive_message(Get_partition_names_ps_result)
                              return result.success unless result.success.nil?
                              raise result.o1 unless result.o1.nil?
                              raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_partition_names_ps failed: unknown result')
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 31 other locations - About 20 mins to fix
                        lib/thrift/thrift_hive.rb on lines 41..45
                        lib/thrift/thrift_hive.rb on lines 57..61
                        lib/thrift/thrift_hive.rb on lines 73..77
                        lib/thrift/thrift_hive.rb on lines 89..93
                        lib/thrift/thrift_hive.rb on lines 105..109
                        lib/thrift/thrift_hive.rb on lines 121..125
                        lib/thrift/thrift_hive.rb on lines 137..141
                        lib/thrift/thrift_hive_metastore.rb on lines 75..79
                        lib/thrift/thrift_hive_metastore.rb on lines 91..95
                        lib/thrift/thrift_hive_metastore.rb on lines 175..179
                        lib/thrift/thrift_hive_metastore.rb on lines 261..265
                        lib/thrift/thrift_hive_metastore.rb on lines 277..281
                        lib/thrift/thrift_hive_metastore.rb on lines 499..503
                        lib/thrift/thrift_hive_metastore.rb on lines 515..519
                        lib/thrift/thrift_hive_metastore.rb on lines 597..601
                        lib/thrift/thrift_hive_metastore.rb on lines 613..617
                        lib/thrift/thrift_hive_metastore.rb on lines 629..633
                        lib/thrift/thrift_hive_metastore.rb on lines 730..734
                        lib/thrift/thrift_hive_metastore.rb on lines 746..750
                        lib/thrift/thrift_hive_metastore.rb on lines 762..766
                        lib/thrift/thrift_hive_metastore.rb on lines 778..782
                        lib/thrift/thrift_hive_metastore.rb on lines 794..798
                        lib/thrift/thrift_hive_metastore.rb on lines 810..814
                        lib/thrift/thrift_hive_metastore.rb on lines 826..830
                        lib/thrift/thrift_hive_metastore.rb on lines 842..846
                        lib/thrift/thrift_hive_metastore.rb on lines 858..862
                        lib/thrift/thrift_hive_metastore.rb on lines 874..878
                        lib/thrift/thrift_hive_metastore.rb on lines 890..894
                        lib/thrift/thrift_hive_metastore.rb on lines 906..910
                        lib/thrift/thrift_hive_metastore.rb on lines 922..926
                        lib/thrift/thrift_hive_metastore.rb on lines 938..942

                        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 27.

                        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 32 locations. Consider refactoring.
                        Open

                            def recv_partition_name_to_spec()
                              result = receive_message(Partition_name_to_spec_result)
                              return result.success unless result.success.nil?
                              raise result.o1 unless result.o1.nil?
                              raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'partition_name_to_spec failed: unknown result')
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 31 other locations - About 20 mins to fix
                        lib/thrift/thrift_hive.rb on lines 41..45
                        lib/thrift/thrift_hive.rb on lines 57..61
                        lib/thrift/thrift_hive.rb on lines 73..77
                        lib/thrift/thrift_hive.rb on lines 89..93
                        lib/thrift/thrift_hive.rb on lines 105..109
                        lib/thrift/thrift_hive.rb on lines 121..125
                        lib/thrift/thrift_hive.rb on lines 137..141
                        lib/thrift/thrift_hive_metastore.rb on lines 75..79
                        lib/thrift/thrift_hive_metastore.rb on lines 91..95
                        lib/thrift/thrift_hive_metastore.rb on lines 175..179
                        lib/thrift/thrift_hive_metastore.rb on lines 261..265
                        lib/thrift/thrift_hive_metastore.rb on lines 277..281
                        lib/thrift/thrift_hive_metastore.rb on lines 499..503
                        lib/thrift/thrift_hive_metastore.rb on lines 515..519
                        lib/thrift/thrift_hive_metastore.rb on lines 548..552
                        lib/thrift/thrift_hive_metastore.rb on lines 597..601
                        lib/thrift/thrift_hive_metastore.rb on lines 613..617
                        lib/thrift/thrift_hive_metastore.rb on lines 730..734
                        lib/thrift/thrift_hive_metastore.rb on lines 746..750
                        lib/thrift/thrift_hive_metastore.rb on lines 762..766
                        lib/thrift/thrift_hive_metastore.rb on lines 778..782
                        lib/thrift/thrift_hive_metastore.rb on lines 794..798
                        lib/thrift/thrift_hive_metastore.rb on lines 810..814
                        lib/thrift/thrift_hive_metastore.rb on lines 826..830
                        lib/thrift/thrift_hive_metastore.rb on lines 842..846
                        lib/thrift/thrift_hive_metastore.rb on lines 858..862
                        lib/thrift/thrift_hive_metastore.rb on lines 874..878
                        lib/thrift/thrift_hive_metastore.rb on lines 890..894
                        lib/thrift/thrift_hive_metastore.rb on lines 906..910
                        lib/thrift/thrift_hive_metastore.rb on lines 922..926
                        lib/thrift/thrift_hive_metastore.rb on lines 938..942

                        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 27.

                        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 32 locations. Consider refactoring.
                        Open

                            def recv_get_databases()
                              result = receive_message(Get_databases_result)
                              return result.success unless result.success.nil?
                              raise result.o1 unless result.o1.nil?
                              raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_databases failed: unknown result')
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 31 other locations - About 20 mins to fix
                        lib/thrift/thrift_hive.rb on lines 41..45
                        lib/thrift/thrift_hive.rb on lines 57..61
                        lib/thrift/thrift_hive.rb on lines 73..77
                        lib/thrift/thrift_hive.rb on lines 89..93
                        lib/thrift/thrift_hive.rb on lines 105..109
                        lib/thrift/thrift_hive.rb on lines 121..125
                        lib/thrift/thrift_hive.rb on lines 137..141
                        lib/thrift/thrift_hive_metastore.rb on lines 91..95
                        lib/thrift/thrift_hive_metastore.rb on lines 175..179
                        lib/thrift/thrift_hive_metastore.rb on lines 261..265
                        lib/thrift/thrift_hive_metastore.rb on lines 277..281
                        lib/thrift/thrift_hive_metastore.rb on lines 499..503
                        lib/thrift/thrift_hive_metastore.rb on lines 515..519
                        lib/thrift/thrift_hive_metastore.rb on lines 548..552
                        lib/thrift/thrift_hive_metastore.rb on lines 597..601
                        lib/thrift/thrift_hive_metastore.rb on lines 613..617
                        lib/thrift/thrift_hive_metastore.rb on lines 629..633
                        lib/thrift/thrift_hive_metastore.rb on lines 730..734
                        lib/thrift/thrift_hive_metastore.rb on lines 746..750
                        lib/thrift/thrift_hive_metastore.rb on lines 762..766
                        lib/thrift/thrift_hive_metastore.rb on lines 778..782
                        lib/thrift/thrift_hive_metastore.rb on lines 794..798
                        lib/thrift/thrift_hive_metastore.rb on lines 810..814
                        lib/thrift/thrift_hive_metastore.rb on lines 826..830
                        lib/thrift/thrift_hive_metastore.rb on lines 842..846
                        lib/thrift/thrift_hive_metastore.rb on lines 858..862
                        lib/thrift/thrift_hive_metastore.rb on lines 874..878
                        lib/thrift/thrift_hive_metastore.rb on lines 890..894
                        lib/thrift/thrift_hive_metastore.rb on lines 906..910
                        lib/thrift/thrift_hive_metastore.rb on lines 922..926
                        lib/thrift/thrift_hive_metastore.rb on lines 938..942

                        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 27.

                        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 32 locations. Consider refactoring.
                        Open

                            def recv_get_partitions_ps()
                              result = receive_message(Get_partitions_ps_result)
                              return result.success unless result.success.nil?
                              raise result.o1 unless result.o1.nil?
                              raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_partitions_ps failed: unknown result')
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 31 other locations - About 20 mins to fix
                        lib/thrift/thrift_hive.rb on lines 41..45
                        lib/thrift/thrift_hive.rb on lines 57..61
                        lib/thrift/thrift_hive.rb on lines 73..77
                        lib/thrift/thrift_hive.rb on lines 89..93
                        lib/thrift/thrift_hive.rb on lines 105..109
                        lib/thrift/thrift_hive.rb on lines 121..125
                        lib/thrift/thrift_hive.rb on lines 137..141
                        lib/thrift/thrift_hive_metastore.rb on lines 75..79
                        lib/thrift/thrift_hive_metastore.rb on lines 91..95
                        lib/thrift/thrift_hive_metastore.rb on lines 175..179
                        lib/thrift/thrift_hive_metastore.rb on lines 261..265
                        lib/thrift/thrift_hive_metastore.rb on lines 277..281
                        lib/thrift/thrift_hive_metastore.rb on lines 499..503
                        lib/thrift/thrift_hive_metastore.rb on lines 548..552
                        lib/thrift/thrift_hive_metastore.rb on lines 597..601
                        lib/thrift/thrift_hive_metastore.rb on lines 613..617
                        lib/thrift/thrift_hive_metastore.rb on lines 629..633
                        lib/thrift/thrift_hive_metastore.rb on lines 730..734
                        lib/thrift/thrift_hive_metastore.rb on lines 746..750
                        lib/thrift/thrift_hive_metastore.rb on lines 762..766
                        lib/thrift/thrift_hive_metastore.rb on lines 778..782
                        lib/thrift/thrift_hive_metastore.rb on lines 794..798
                        lib/thrift/thrift_hive_metastore.rb on lines 810..814
                        lib/thrift/thrift_hive_metastore.rb on lines 826..830
                        lib/thrift/thrift_hive_metastore.rb on lines 842..846
                        lib/thrift/thrift_hive_metastore.rb on lines 858..862
                        lib/thrift/thrift_hive_metastore.rb on lines 874..878
                        lib/thrift/thrift_hive_metastore.rb on lines 890..894
                        lib/thrift/thrift_hive_metastore.rb on lines 906..910
                        lib/thrift/thrift_hive_metastore.rb on lines 922..926
                        lib/thrift/thrift_hive_metastore.rb on lines 938..942

                        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 27.

                        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 32 locations. Consider refactoring.
                        Open

                            def recv_drop_role()
                              result = receive_message(Drop_role_result)
                              return result.success unless result.success.nil?
                              raise result.o1 unless result.o1.nil?
                              raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'drop_role failed: unknown result')
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 31 other locations - About 20 mins to fix
                        lib/thrift/thrift_hive.rb on lines 41..45
                        lib/thrift/thrift_hive.rb on lines 57..61
                        lib/thrift/thrift_hive.rb on lines 73..77
                        lib/thrift/thrift_hive.rb on lines 89..93
                        lib/thrift/thrift_hive.rb on lines 105..109
                        lib/thrift/thrift_hive.rb on lines 121..125
                        lib/thrift/thrift_hive.rb on lines 137..141
                        lib/thrift/thrift_hive_metastore.rb on lines 75..79
                        lib/thrift/thrift_hive_metastore.rb on lines 91..95
                        lib/thrift/thrift_hive_metastore.rb on lines 175..179
                        lib/thrift/thrift_hive_metastore.rb on lines 261..265
                        lib/thrift/thrift_hive_metastore.rb on lines 277..281
                        lib/thrift/thrift_hive_metastore.rb on lines 499..503
                        lib/thrift/thrift_hive_metastore.rb on lines 515..519
                        lib/thrift/thrift_hive_metastore.rb on lines 548..552
                        lib/thrift/thrift_hive_metastore.rb on lines 597..601
                        lib/thrift/thrift_hive_metastore.rb on lines 613..617
                        lib/thrift/thrift_hive_metastore.rb on lines 629..633
                        lib/thrift/thrift_hive_metastore.rb on lines 730..734
                        lib/thrift/thrift_hive_metastore.rb on lines 746..750
                        lib/thrift/thrift_hive_metastore.rb on lines 778..782
                        lib/thrift/thrift_hive_metastore.rb on lines 794..798
                        lib/thrift/thrift_hive_metastore.rb on lines 810..814
                        lib/thrift/thrift_hive_metastore.rb on lines 826..830
                        lib/thrift/thrift_hive_metastore.rb on lines 842..846
                        lib/thrift/thrift_hive_metastore.rb on lines 858..862
                        lib/thrift/thrift_hive_metastore.rb on lines 874..878
                        lib/thrift/thrift_hive_metastore.rb on lines 890..894
                        lib/thrift/thrift_hive_metastore.rb on lines 906..910
                        lib/thrift/thrift_hive_metastore.rb on lines 922..926
                        lib/thrift/thrift_hive_metastore.rb on lines 938..942

                        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 27.

                        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 32 locations. Consider refactoring.
                        Open

                            def recv_revoke_role()
                              result = receive_message(Revoke_role_result)
                              return result.success unless result.success.nil?
                              raise result.o1 unless result.o1.nil?
                              raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'revoke_role failed: unknown result')
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 31 other locations - About 20 mins to fix
                        lib/thrift/thrift_hive.rb on lines 41..45
                        lib/thrift/thrift_hive.rb on lines 57..61
                        lib/thrift/thrift_hive.rb on lines 73..77
                        lib/thrift/thrift_hive.rb on lines 89..93
                        lib/thrift/thrift_hive.rb on lines 105..109
                        lib/thrift/thrift_hive.rb on lines 121..125
                        lib/thrift/thrift_hive.rb on lines 137..141
                        lib/thrift/thrift_hive_metastore.rb on lines 75..79
                        lib/thrift/thrift_hive_metastore.rb on lines 91..95
                        lib/thrift/thrift_hive_metastore.rb on lines 175..179
                        lib/thrift/thrift_hive_metastore.rb on lines 261..265
                        lib/thrift/thrift_hive_metastore.rb on lines 277..281
                        lib/thrift/thrift_hive_metastore.rb on lines 499..503
                        lib/thrift/thrift_hive_metastore.rb on lines 515..519
                        lib/thrift/thrift_hive_metastore.rb on lines 548..552
                        lib/thrift/thrift_hive_metastore.rb on lines 597..601
                        lib/thrift/thrift_hive_metastore.rb on lines 613..617
                        lib/thrift/thrift_hive_metastore.rb on lines 629..633
                        lib/thrift/thrift_hive_metastore.rb on lines 730..734
                        lib/thrift/thrift_hive_metastore.rb on lines 746..750
                        lib/thrift/thrift_hive_metastore.rb on lines 762..766
                        lib/thrift/thrift_hive_metastore.rb on lines 778..782
                        lib/thrift/thrift_hive_metastore.rb on lines 794..798
                        lib/thrift/thrift_hive_metastore.rb on lines 826..830
                        lib/thrift/thrift_hive_metastore.rb on lines 842..846
                        lib/thrift/thrift_hive_metastore.rb on lines 858..862
                        lib/thrift/thrift_hive_metastore.rb on lines 874..878
                        lib/thrift/thrift_hive_metastore.rb on lines 890..894
                        lib/thrift/thrift_hive_metastore.rb on lines 906..910
                        lib/thrift/thrift_hive_metastore.rb on lines 922..926
                        lib/thrift/thrift_hive_metastore.rb on lines 938..942

                        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 27.

                        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 32 locations. Consider refactoring.
                        Open

                            def recv_get_delegation_token()
                              result = receive_message(Get_delegation_token_result)
                              return result.success unless result.success.nil?
                              raise result.o1 unless result.o1.nil?
                              raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_delegation_token failed: unknown result')
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 31 other locations - About 20 mins to fix
                        lib/thrift/thrift_hive.rb on lines 41..45
                        lib/thrift/thrift_hive.rb on lines 57..61
                        lib/thrift/thrift_hive.rb on lines 73..77
                        lib/thrift/thrift_hive.rb on lines 89..93
                        lib/thrift/thrift_hive.rb on lines 105..109
                        lib/thrift/thrift_hive.rb on lines 121..125
                        lib/thrift/thrift_hive.rb on lines 137..141
                        lib/thrift/thrift_hive_metastore.rb on lines 75..79
                        lib/thrift/thrift_hive_metastore.rb on lines 91..95
                        lib/thrift/thrift_hive_metastore.rb on lines 175..179
                        lib/thrift/thrift_hive_metastore.rb on lines 261..265
                        lib/thrift/thrift_hive_metastore.rb on lines 277..281
                        lib/thrift/thrift_hive_metastore.rb on lines 499..503
                        lib/thrift/thrift_hive_metastore.rb on lines 515..519
                        lib/thrift/thrift_hive_metastore.rb on lines 548..552
                        lib/thrift/thrift_hive_metastore.rb on lines 597..601
                        lib/thrift/thrift_hive_metastore.rb on lines 613..617
                        lib/thrift/thrift_hive_metastore.rb on lines 629..633
                        lib/thrift/thrift_hive_metastore.rb on lines 730..734
                        lib/thrift/thrift_hive_metastore.rb on lines 746..750
                        lib/thrift/thrift_hive_metastore.rb on lines 762..766
                        lib/thrift/thrift_hive_metastore.rb on lines 778..782
                        lib/thrift/thrift_hive_metastore.rb on lines 794..798
                        lib/thrift/thrift_hive_metastore.rb on lines 810..814
                        lib/thrift/thrift_hive_metastore.rb on lines 826..830
                        lib/thrift/thrift_hive_metastore.rb on lines 842..846
                        lib/thrift/thrift_hive_metastore.rb on lines 858..862
                        lib/thrift/thrift_hive_metastore.rb on lines 874..878
                        lib/thrift/thrift_hive_metastore.rb on lines 890..894
                        lib/thrift/thrift_hive_metastore.rb on lines 922..926
                        lib/thrift/thrift_hive_metastore.rb on lines 938..942

                        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 27.

                        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 32 locations. Consider refactoring.
                        Open

                            def recv_create_role()
                              result = receive_message(Create_role_result)
                              return result.success unless result.success.nil?
                              raise result.o1 unless result.o1.nil?
                              raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'create_role failed: unknown result')
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 31 other locations - About 20 mins to fix
                        lib/thrift/thrift_hive.rb on lines 41..45
                        lib/thrift/thrift_hive.rb on lines 57..61
                        lib/thrift/thrift_hive.rb on lines 73..77
                        lib/thrift/thrift_hive.rb on lines 89..93
                        lib/thrift/thrift_hive.rb on lines 105..109
                        lib/thrift/thrift_hive.rb on lines 121..125
                        lib/thrift/thrift_hive.rb on lines 137..141
                        lib/thrift/thrift_hive_metastore.rb on lines 75..79
                        lib/thrift/thrift_hive_metastore.rb on lines 91..95
                        lib/thrift/thrift_hive_metastore.rb on lines 175..179
                        lib/thrift/thrift_hive_metastore.rb on lines 261..265
                        lib/thrift/thrift_hive_metastore.rb on lines 277..281
                        lib/thrift/thrift_hive_metastore.rb on lines 499..503
                        lib/thrift/thrift_hive_metastore.rb on lines 515..519
                        lib/thrift/thrift_hive_metastore.rb on lines 548..552
                        lib/thrift/thrift_hive_metastore.rb on lines 597..601
                        lib/thrift/thrift_hive_metastore.rb on lines 613..617
                        lib/thrift/thrift_hive_metastore.rb on lines 629..633
                        lib/thrift/thrift_hive_metastore.rb on lines 730..734
                        lib/thrift/thrift_hive_metastore.rb on lines 762..766
                        lib/thrift/thrift_hive_metastore.rb on lines 778..782
                        lib/thrift/thrift_hive_metastore.rb on lines 794..798
                        lib/thrift/thrift_hive_metastore.rb on lines 810..814
                        lib/thrift/thrift_hive_metastore.rb on lines 826..830
                        lib/thrift/thrift_hive_metastore.rb on lines 842..846
                        lib/thrift/thrift_hive_metastore.rb on lines 858..862
                        lib/thrift/thrift_hive_metastore.rb on lines 874..878
                        lib/thrift/thrift_hive_metastore.rb on lines 890..894
                        lib/thrift/thrift_hive_metastore.rb on lines 906..910
                        lib/thrift/thrift_hive_metastore.rb on lines 922..926
                        lib/thrift/thrift_hive_metastore.rb on lines 938..942

                        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 27.

                        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 32 locations. Consider refactoring.
                        Open

                            def recv_get_all_databases()
                              result = receive_message(Get_all_databases_result)
                              return result.success unless result.success.nil?
                              raise result.o1 unless result.o1.nil?
                              raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_all_databases failed: unknown result')
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 31 other locations - About 20 mins to fix
                        lib/thrift/thrift_hive.rb on lines 41..45
                        lib/thrift/thrift_hive.rb on lines 57..61
                        lib/thrift/thrift_hive.rb on lines 73..77
                        lib/thrift/thrift_hive.rb on lines 89..93
                        lib/thrift/thrift_hive.rb on lines 105..109
                        lib/thrift/thrift_hive.rb on lines 121..125
                        lib/thrift/thrift_hive.rb on lines 137..141
                        lib/thrift/thrift_hive_metastore.rb on lines 75..79
                        lib/thrift/thrift_hive_metastore.rb on lines 175..179
                        lib/thrift/thrift_hive_metastore.rb on lines 261..265
                        lib/thrift/thrift_hive_metastore.rb on lines 277..281
                        lib/thrift/thrift_hive_metastore.rb on lines 499..503
                        lib/thrift/thrift_hive_metastore.rb on lines 515..519
                        lib/thrift/thrift_hive_metastore.rb on lines 548..552
                        lib/thrift/thrift_hive_metastore.rb on lines 597..601
                        lib/thrift/thrift_hive_metastore.rb on lines 613..617
                        lib/thrift/thrift_hive_metastore.rb on lines 629..633
                        lib/thrift/thrift_hive_metastore.rb on lines 730..734
                        lib/thrift/thrift_hive_metastore.rb on lines 746..750
                        lib/thrift/thrift_hive_metastore.rb on lines 762..766
                        lib/thrift/thrift_hive_metastore.rb on lines 778..782
                        lib/thrift/thrift_hive_metastore.rb on lines 794..798
                        lib/thrift/thrift_hive_metastore.rb on lines 810..814
                        lib/thrift/thrift_hive_metastore.rb on lines 826..830
                        lib/thrift/thrift_hive_metastore.rb on lines 842..846
                        lib/thrift/thrift_hive_metastore.rb on lines 858..862
                        lib/thrift/thrift_hive_metastore.rb on lines 874..878
                        lib/thrift/thrift_hive_metastore.rb on lines 890..894
                        lib/thrift/thrift_hive_metastore.rb on lines 906..910
                        lib/thrift/thrift_hive_metastore.rb on lines 922..926
                        lib/thrift/thrift_hive_metastore.rb on lines 938..942

                        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 27.

                        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 32 locations. Consider refactoring.
                        Open

                            def recv_grant_role()
                              result = receive_message(Grant_role_result)
                              return result.success unless result.success.nil?
                              raise result.o1 unless result.o1.nil?
                              raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'grant_role failed: unknown result')
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 31 other locations - About 20 mins to fix
                        lib/thrift/thrift_hive.rb on lines 41..45
                        lib/thrift/thrift_hive.rb on lines 57..61
                        lib/thrift/thrift_hive.rb on lines 73..77
                        lib/thrift/thrift_hive.rb on lines 89..93
                        lib/thrift/thrift_hive.rb on lines 105..109
                        lib/thrift/thrift_hive.rb on lines 121..125
                        lib/thrift/thrift_hive.rb on lines 137..141
                        lib/thrift/thrift_hive_metastore.rb on lines 75..79
                        lib/thrift/thrift_hive_metastore.rb on lines 91..95
                        lib/thrift/thrift_hive_metastore.rb on lines 175..179
                        lib/thrift/thrift_hive_metastore.rb on lines 261..265
                        lib/thrift/thrift_hive_metastore.rb on lines 277..281
                        lib/thrift/thrift_hive_metastore.rb on lines 499..503
                        lib/thrift/thrift_hive_metastore.rb on lines 515..519
                        lib/thrift/thrift_hive_metastore.rb on lines 548..552
                        lib/thrift/thrift_hive_metastore.rb on lines 597..601
                        lib/thrift/thrift_hive_metastore.rb on lines 613..617
                        lib/thrift/thrift_hive_metastore.rb on lines 629..633
                        lib/thrift/thrift_hive_metastore.rb on lines 730..734
                        lib/thrift/thrift_hive_metastore.rb on lines 746..750
                        lib/thrift/thrift_hive_metastore.rb on lines 762..766
                        lib/thrift/thrift_hive_metastore.rb on lines 778..782
                        lib/thrift/thrift_hive_metastore.rb on lines 810..814
                        lib/thrift/thrift_hive_metastore.rb on lines 826..830
                        lib/thrift/thrift_hive_metastore.rb on lines 842..846
                        lib/thrift/thrift_hive_metastore.rb on lines 858..862
                        lib/thrift/thrift_hive_metastore.rb on lines 874..878
                        lib/thrift/thrift_hive_metastore.rb on lines 890..894
                        lib/thrift/thrift_hive_metastore.rb on lines 906..910
                        lib/thrift/thrift_hive_metastore.rb on lines 922..926
                        lib/thrift/thrift_hive_metastore.rb on lines 938..942

                        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 27.

                        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 32 locations. Consider refactoring.
                        Open

                            def recv_list_privileges()
                              result = receive_message(List_privileges_result)
                              return result.success unless result.success.nil?
                              raise result.o1 unless result.o1.nil?
                              raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'list_privileges failed: unknown result')
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 31 other locations - About 20 mins to fix
                        lib/thrift/thrift_hive.rb on lines 41..45
                        lib/thrift/thrift_hive.rb on lines 57..61
                        lib/thrift/thrift_hive.rb on lines 73..77
                        lib/thrift/thrift_hive.rb on lines 89..93
                        lib/thrift/thrift_hive.rb on lines 105..109
                        lib/thrift/thrift_hive.rb on lines 121..125
                        lib/thrift/thrift_hive.rb on lines 137..141
                        lib/thrift/thrift_hive_metastore.rb on lines 75..79
                        lib/thrift/thrift_hive_metastore.rb on lines 91..95
                        lib/thrift/thrift_hive_metastore.rb on lines 175..179
                        lib/thrift/thrift_hive_metastore.rb on lines 261..265
                        lib/thrift/thrift_hive_metastore.rb on lines 277..281
                        lib/thrift/thrift_hive_metastore.rb on lines 499..503
                        lib/thrift/thrift_hive_metastore.rb on lines 515..519
                        lib/thrift/thrift_hive_metastore.rb on lines 548..552
                        lib/thrift/thrift_hive_metastore.rb on lines 597..601
                        lib/thrift/thrift_hive_metastore.rb on lines 613..617
                        lib/thrift/thrift_hive_metastore.rb on lines 629..633
                        lib/thrift/thrift_hive_metastore.rb on lines 730..734
                        lib/thrift/thrift_hive_metastore.rb on lines 746..750
                        lib/thrift/thrift_hive_metastore.rb on lines 762..766
                        lib/thrift/thrift_hive_metastore.rb on lines 778..782
                        lib/thrift/thrift_hive_metastore.rb on lines 794..798
                        lib/thrift/thrift_hive_metastore.rb on lines 810..814
                        lib/thrift/thrift_hive_metastore.rb on lines 826..830
                        lib/thrift/thrift_hive_metastore.rb on lines 842..846
                        lib/thrift/thrift_hive_metastore.rb on lines 874..878
                        lib/thrift/thrift_hive_metastore.rb on lines 890..894
                        lib/thrift/thrift_hive_metastore.rb on lines 906..910
                        lib/thrift/thrift_hive_metastore.rb on lines 922..926
                        lib/thrift/thrift_hive_metastore.rb on lines 938..942

                        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 27.

                        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 32 locations. Consider refactoring.
                        Open

                            def recv_get_type_all()
                              result = receive_message(Get_type_all_result)
                              return result.success unless result.success.nil?
                              raise result.o2 unless result.o2.nil?
                              raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_type_all failed: unknown result')
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 31 other locations - About 20 mins to fix
                        lib/thrift/thrift_hive.rb on lines 41..45
                        lib/thrift/thrift_hive.rb on lines 57..61
                        lib/thrift/thrift_hive.rb on lines 73..77
                        lib/thrift/thrift_hive.rb on lines 89..93
                        lib/thrift/thrift_hive.rb on lines 105..109
                        lib/thrift/thrift_hive.rb on lines 121..125
                        lib/thrift/thrift_hive.rb on lines 137..141
                        lib/thrift/thrift_hive_metastore.rb on lines 75..79
                        lib/thrift/thrift_hive_metastore.rb on lines 91..95
                        lib/thrift/thrift_hive_metastore.rb on lines 261..265
                        lib/thrift/thrift_hive_metastore.rb on lines 277..281
                        lib/thrift/thrift_hive_metastore.rb on lines 499..503
                        lib/thrift/thrift_hive_metastore.rb on lines 515..519
                        lib/thrift/thrift_hive_metastore.rb on lines 548..552
                        lib/thrift/thrift_hive_metastore.rb on lines 597..601
                        lib/thrift/thrift_hive_metastore.rb on lines 613..617
                        lib/thrift/thrift_hive_metastore.rb on lines 629..633
                        lib/thrift/thrift_hive_metastore.rb on lines 730..734
                        lib/thrift/thrift_hive_metastore.rb on lines 746..750
                        lib/thrift/thrift_hive_metastore.rb on lines 762..766
                        lib/thrift/thrift_hive_metastore.rb on lines 778..782
                        lib/thrift/thrift_hive_metastore.rb on lines 794..798
                        lib/thrift/thrift_hive_metastore.rb on lines 810..814
                        lib/thrift/thrift_hive_metastore.rb on lines 826..830
                        lib/thrift/thrift_hive_metastore.rb on lines 842..846
                        lib/thrift/thrift_hive_metastore.rb on lines 858..862
                        lib/thrift/thrift_hive_metastore.rb on lines 874..878
                        lib/thrift/thrift_hive_metastore.rb on lines 890..894
                        lib/thrift/thrift_hive_metastore.rb on lines 906..910
                        lib/thrift/thrift_hive_metastore.rb on lines 922..926
                        lib/thrift/thrift_hive_metastore.rb on lines 938..942

                        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 27.

                        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 32 locations. Consider refactoring.
                        Open

                            def recv_list_roles()
                              result = receive_message(List_roles_result)
                              return result.success unless result.success.nil?
                              raise result.o1 unless result.o1.nil?
                              raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'list_roles failed: unknown result')
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 31 other locations - About 20 mins to fix
                        lib/thrift/thrift_hive.rb on lines 41..45
                        lib/thrift/thrift_hive.rb on lines 57..61
                        lib/thrift/thrift_hive.rb on lines 73..77
                        lib/thrift/thrift_hive.rb on lines 89..93
                        lib/thrift/thrift_hive.rb on lines 105..109
                        lib/thrift/thrift_hive.rb on lines 121..125
                        lib/thrift/thrift_hive.rb on lines 137..141
                        lib/thrift/thrift_hive_metastore.rb on lines 75..79
                        lib/thrift/thrift_hive_metastore.rb on lines 91..95
                        lib/thrift/thrift_hive_metastore.rb on lines 175..179
                        lib/thrift/thrift_hive_metastore.rb on lines 261..265
                        lib/thrift/thrift_hive_metastore.rb on lines 277..281
                        lib/thrift/thrift_hive_metastore.rb on lines 499..503
                        lib/thrift/thrift_hive_metastore.rb on lines 515..519
                        lib/thrift/thrift_hive_metastore.rb on lines 548..552
                        lib/thrift/thrift_hive_metastore.rb on lines 597..601
                        lib/thrift/thrift_hive_metastore.rb on lines 613..617
                        lib/thrift/thrift_hive_metastore.rb on lines 629..633
                        lib/thrift/thrift_hive_metastore.rb on lines 730..734
                        lib/thrift/thrift_hive_metastore.rb on lines 746..750
                        lib/thrift/thrift_hive_metastore.rb on lines 762..766
                        lib/thrift/thrift_hive_metastore.rb on lines 778..782
                        lib/thrift/thrift_hive_metastore.rb on lines 794..798
                        lib/thrift/thrift_hive_metastore.rb on lines 810..814
                        lib/thrift/thrift_hive_metastore.rb on lines 842..846
                        lib/thrift/thrift_hive_metastore.rb on lines 858..862
                        lib/thrift/thrift_hive_metastore.rb on lines 874..878
                        lib/thrift/thrift_hive_metastore.rb on lines 890..894
                        lib/thrift/thrift_hive_metastore.rb on lines 906..910
                        lib/thrift/thrift_hive_metastore.rb on lines 922..926
                        lib/thrift/thrift_hive_metastore.rb on lines 938..942

                        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 27.

                        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 32 locations. Consider refactoring.
                        Open

                            def recv_renew_delegation_token()
                              result = receive_message(Renew_delegation_token_result)
                              return result.success unless result.success.nil?
                              raise result.o1 unless result.o1.nil?
                              raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'renew_delegation_token failed: unknown result')
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 31 other locations - About 20 mins to fix
                        lib/thrift/thrift_hive.rb on lines 41..45
                        lib/thrift/thrift_hive.rb on lines 57..61
                        lib/thrift/thrift_hive.rb on lines 73..77
                        lib/thrift/thrift_hive.rb on lines 89..93
                        lib/thrift/thrift_hive.rb on lines 105..109
                        lib/thrift/thrift_hive.rb on lines 121..125
                        lib/thrift/thrift_hive.rb on lines 137..141
                        lib/thrift/thrift_hive_metastore.rb on lines 75..79
                        lib/thrift/thrift_hive_metastore.rb on lines 91..95
                        lib/thrift/thrift_hive_metastore.rb on lines 175..179
                        lib/thrift/thrift_hive_metastore.rb on lines 261..265
                        lib/thrift/thrift_hive_metastore.rb on lines 277..281
                        lib/thrift/thrift_hive_metastore.rb on lines 499..503
                        lib/thrift/thrift_hive_metastore.rb on lines 515..519
                        lib/thrift/thrift_hive_metastore.rb on lines 548..552
                        lib/thrift/thrift_hive_metastore.rb on lines 597..601
                        lib/thrift/thrift_hive_metastore.rb on lines 613..617
                        lib/thrift/thrift_hive_metastore.rb on lines 629..633
                        lib/thrift/thrift_hive_metastore.rb on lines 730..734
                        lib/thrift/thrift_hive_metastore.rb on lines 746..750
                        lib/thrift/thrift_hive_metastore.rb on lines 762..766
                        lib/thrift/thrift_hive_metastore.rb on lines 778..782
                        lib/thrift/thrift_hive_metastore.rb on lines 794..798
                        lib/thrift/thrift_hive_metastore.rb on lines 810..814
                        lib/thrift/thrift_hive_metastore.rb on lines 826..830
                        lib/thrift/thrift_hive_metastore.rb on lines 842..846
                        lib/thrift/thrift_hive_metastore.rb on lines 858..862
                        lib/thrift/thrift_hive_metastore.rb on lines 874..878
                        lib/thrift/thrift_hive_metastore.rb on lines 890..894
                        lib/thrift/thrift_hive_metastore.rb on lines 906..910
                        lib/thrift/thrift_hive_metastore.rb on lines 922..926

                        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 27.

                        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 32 locations. Consider refactoring.
                        Open

                            def recv_get_role_names()
                              result = receive_message(Get_role_names_result)
                              return result.success unless result.success.nil?
                              raise result.o1 unless result.o1.nil?
                              raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_role_names failed: unknown result')
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 31 other locations - About 20 mins to fix
                        lib/thrift/thrift_hive.rb on lines 41..45
                        lib/thrift/thrift_hive.rb on lines 57..61
                        lib/thrift/thrift_hive.rb on lines 73..77
                        lib/thrift/thrift_hive.rb on lines 89..93
                        lib/thrift/thrift_hive.rb on lines 105..109
                        lib/thrift/thrift_hive.rb on lines 121..125
                        lib/thrift/thrift_hive.rb on lines 137..141
                        lib/thrift/thrift_hive_metastore.rb on lines 75..79
                        lib/thrift/thrift_hive_metastore.rb on lines 91..95
                        lib/thrift/thrift_hive_metastore.rb on lines 175..179
                        lib/thrift/thrift_hive_metastore.rb on lines 261..265
                        lib/thrift/thrift_hive_metastore.rb on lines 277..281
                        lib/thrift/thrift_hive_metastore.rb on lines 499..503
                        lib/thrift/thrift_hive_metastore.rb on lines 515..519
                        lib/thrift/thrift_hive_metastore.rb on lines 548..552
                        lib/thrift/thrift_hive_metastore.rb on lines 597..601
                        lib/thrift/thrift_hive_metastore.rb on lines 613..617
                        lib/thrift/thrift_hive_metastore.rb on lines 629..633
                        lib/thrift/thrift_hive_metastore.rb on lines 730..734
                        lib/thrift/thrift_hive_metastore.rb on lines 746..750
                        lib/thrift/thrift_hive_metastore.rb on lines 762..766
                        lib/thrift/thrift_hive_metastore.rb on lines 794..798
                        lib/thrift/thrift_hive_metastore.rb on lines 810..814
                        lib/thrift/thrift_hive_metastore.rb on lines 826..830
                        lib/thrift/thrift_hive_metastore.rb on lines 842..846
                        lib/thrift/thrift_hive_metastore.rb on lines 858..862
                        lib/thrift/thrift_hive_metastore.rb on lines 874..878
                        lib/thrift/thrift_hive_metastore.rb on lines 890..894
                        lib/thrift/thrift_hive_metastore.rb on lines 906..910
                        lib/thrift/thrift_hive_metastore.rb on lines 922..926
                        lib/thrift/thrift_hive_metastore.rb on lines 938..942

                        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 27.

                        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 32 locations. Consider refactoring.
                        Open

                            def recv_get_index_names()
                              result = receive_message(Get_index_names_result)
                              return result.success unless result.success.nil?
                              raise result.o2 unless result.o2.nil?
                              raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_index_names failed: unknown result')
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 31 other locations - About 20 mins to fix
                        lib/thrift/thrift_hive.rb on lines 41..45
                        lib/thrift/thrift_hive.rb on lines 57..61
                        lib/thrift/thrift_hive.rb on lines 73..77
                        lib/thrift/thrift_hive.rb on lines 89..93
                        lib/thrift/thrift_hive.rb on lines 105..109
                        lib/thrift/thrift_hive.rb on lines 121..125
                        lib/thrift/thrift_hive.rb on lines 137..141
                        lib/thrift/thrift_hive_metastore.rb on lines 75..79
                        lib/thrift/thrift_hive_metastore.rb on lines 91..95
                        lib/thrift/thrift_hive_metastore.rb on lines 175..179
                        lib/thrift/thrift_hive_metastore.rb on lines 261..265
                        lib/thrift/thrift_hive_metastore.rb on lines 277..281
                        lib/thrift/thrift_hive_metastore.rb on lines 499..503
                        lib/thrift/thrift_hive_metastore.rb on lines 515..519
                        lib/thrift/thrift_hive_metastore.rb on lines 548..552
                        lib/thrift/thrift_hive_metastore.rb on lines 597..601
                        lib/thrift/thrift_hive_metastore.rb on lines 613..617
                        lib/thrift/thrift_hive_metastore.rb on lines 629..633
                        lib/thrift/thrift_hive_metastore.rb on lines 746..750
                        lib/thrift/thrift_hive_metastore.rb on lines 762..766
                        lib/thrift/thrift_hive_metastore.rb on lines 778..782
                        lib/thrift/thrift_hive_metastore.rb on lines 794..798
                        lib/thrift/thrift_hive_metastore.rb on lines 810..814
                        lib/thrift/thrift_hive_metastore.rb on lines 826..830
                        lib/thrift/thrift_hive_metastore.rb on lines 842..846
                        lib/thrift/thrift_hive_metastore.rb on lines 858..862
                        lib/thrift/thrift_hive_metastore.rb on lines 874..878
                        lib/thrift/thrift_hive_metastore.rb on lines 890..894
                        lib/thrift/thrift_hive_metastore.rb on lines 906..910
                        lib/thrift/thrift_hive_metastore.rb on lines 922..926
                        lib/thrift/thrift_hive_metastore.rb on lines 938..942

                        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 27.

                        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 32 locations. Consider refactoring.
                        Open

                            def recv_get_partition_names()
                              result = receive_message(Get_partition_names_result)
                              return result.success unless result.success.nil?
                              raise result.o2 unless result.o2.nil?
                              raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_partition_names failed: unknown result')
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 31 other locations - About 20 mins to fix
                        lib/thrift/thrift_hive.rb on lines 41..45
                        lib/thrift/thrift_hive.rb on lines 57..61
                        lib/thrift/thrift_hive.rb on lines 73..77
                        lib/thrift/thrift_hive.rb on lines 89..93
                        lib/thrift/thrift_hive.rb on lines 105..109
                        lib/thrift/thrift_hive.rb on lines 121..125
                        lib/thrift/thrift_hive.rb on lines 137..141
                        lib/thrift/thrift_hive_metastore.rb on lines 75..79
                        lib/thrift/thrift_hive_metastore.rb on lines 91..95
                        lib/thrift/thrift_hive_metastore.rb on lines 175..179
                        lib/thrift/thrift_hive_metastore.rb on lines 261..265
                        lib/thrift/thrift_hive_metastore.rb on lines 277..281
                        lib/thrift/thrift_hive_metastore.rb on lines 515..519
                        lib/thrift/thrift_hive_metastore.rb on lines 548..552
                        lib/thrift/thrift_hive_metastore.rb on lines 597..601
                        lib/thrift/thrift_hive_metastore.rb on lines 613..617
                        lib/thrift/thrift_hive_metastore.rb on lines 629..633
                        lib/thrift/thrift_hive_metastore.rb on lines 730..734
                        lib/thrift/thrift_hive_metastore.rb on lines 746..750
                        lib/thrift/thrift_hive_metastore.rb on lines 762..766
                        lib/thrift/thrift_hive_metastore.rb on lines 778..782
                        lib/thrift/thrift_hive_metastore.rb on lines 794..798
                        lib/thrift/thrift_hive_metastore.rb on lines 810..814
                        lib/thrift/thrift_hive_metastore.rb on lines 826..830
                        lib/thrift/thrift_hive_metastore.rb on lines 842..846
                        lib/thrift/thrift_hive_metastore.rb on lines 858..862
                        lib/thrift/thrift_hive_metastore.rb on lines 874..878
                        lib/thrift/thrift_hive_metastore.rb on lines 890..894
                        lib/thrift/thrift_hive_metastore.rb on lines 906..910
                        lib/thrift/thrift_hive_metastore.rb on lines 922..926
                        lib/thrift/thrift_hive_metastore.rb on lines 938..942

                        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 27.

                        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 32 locations. Consider refactoring.
                        Open

                            def recv_grant_privileges()
                              result = receive_message(Grant_privileges_result)
                              return result.success unless result.success.nil?
                              raise result.o1 unless result.o1.nil?
                              raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'grant_privileges failed: unknown result')
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 31 other locations - About 20 mins to fix
                        lib/thrift/thrift_hive.rb on lines 41..45
                        lib/thrift/thrift_hive.rb on lines 57..61
                        lib/thrift/thrift_hive.rb on lines 73..77
                        lib/thrift/thrift_hive.rb on lines 89..93
                        lib/thrift/thrift_hive.rb on lines 105..109
                        lib/thrift/thrift_hive.rb on lines 121..125
                        lib/thrift/thrift_hive.rb on lines 137..141
                        lib/thrift/thrift_hive_metastore.rb on lines 75..79
                        lib/thrift/thrift_hive_metastore.rb on lines 91..95
                        lib/thrift/thrift_hive_metastore.rb on lines 175..179
                        lib/thrift/thrift_hive_metastore.rb on lines 261..265
                        lib/thrift/thrift_hive_metastore.rb on lines 277..281
                        lib/thrift/thrift_hive_metastore.rb on lines 499..503
                        lib/thrift/thrift_hive_metastore.rb on lines 515..519
                        lib/thrift/thrift_hive_metastore.rb on lines 548..552
                        lib/thrift/thrift_hive_metastore.rb on lines 597..601
                        lib/thrift/thrift_hive_metastore.rb on lines 613..617
                        lib/thrift/thrift_hive_metastore.rb on lines 629..633
                        lib/thrift/thrift_hive_metastore.rb on lines 730..734
                        lib/thrift/thrift_hive_metastore.rb on lines 746..750
                        lib/thrift/thrift_hive_metastore.rb on lines 762..766
                        lib/thrift/thrift_hive_metastore.rb on lines 778..782
                        lib/thrift/thrift_hive_metastore.rb on lines 794..798
                        lib/thrift/thrift_hive_metastore.rb on lines 810..814
                        lib/thrift/thrift_hive_metastore.rb on lines 826..830
                        lib/thrift/thrift_hive_metastore.rb on lines 842..846
                        lib/thrift/thrift_hive_metastore.rb on lines 858..862
                        lib/thrift/thrift_hive_metastore.rb on lines 890..894
                        lib/thrift/thrift_hive_metastore.rb on lines 906..910
                        lib/thrift/thrift_hive_metastore.rb on lines 922..926
                        lib/thrift/thrift_hive_metastore.rb on lines 938..942

                        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 27.

                        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 32 locations. Consider refactoring.
                        Open

                            def recv_revoke_privileges()
                              result = receive_message(Revoke_privileges_result)
                              return result.success unless result.success.nil?
                              raise result.o1 unless result.o1.nil?
                              raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'revoke_privileges failed: unknown result')
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 31 other locations - About 20 mins to fix
                        lib/thrift/thrift_hive.rb on lines 41..45
                        lib/thrift/thrift_hive.rb on lines 57..61
                        lib/thrift/thrift_hive.rb on lines 73..77
                        lib/thrift/thrift_hive.rb on lines 89..93
                        lib/thrift/thrift_hive.rb on lines 105..109
                        lib/thrift/thrift_hive.rb on lines 121..125
                        lib/thrift/thrift_hive.rb on lines 137..141
                        lib/thrift/thrift_hive_metastore.rb on lines 75..79
                        lib/thrift/thrift_hive_metastore.rb on lines 91..95
                        lib/thrift/thrift_hive_metastore.rb on lines 175..179
                        lib/thrift/thrift_hive_metastore.rb on lines 261..265
                        lib/thrift/thrift_hive_metastore.rb on lines 277..281
                        lib/thrift/thrift_hive_metastore.rb on lines 499..503
                        lib/thrift/thrift_hive_metastore.rb on lines 515..519
                        lib/thrift/thrift_hive_metastore.rb on lines 548..552
                        lib/thrift/thrift_hive_metastore.rb on lines 597..601
                        lib/thrift/thrift_hive_metastore.rb on lines 613..617
                        lib/thrift/thrift_hive_metastore.rb on lines 629..633
                        lib/thrift/thrift_hive_metastore.rb on lines 730..734
                        lib/thrift/thrift_hive_metastore.rb on lines 746..750
                        lib/thrift/thrift_hive_metastore.rb on lines 762..766
                        lib/thrift/thrift_hive_metastore.rb on lines 778..782
                        lib/thrift/thrift_hive_metastore.rb on lines 794..798
                        lib/thrift/thrift_hive_metastore.rb on lines 810..814
                        lib/thrift/thrift_hive_metastore.rb on lines 826..830
                        lib/thrift/thrift_hive_metastore.rb on lines 842..846
                        lib/thrift/thrift_hive_metastore.rb on lines 858..862
                        lib/thrift/thrift_hive_metastore.rb on lines 874..878
                        lib/thrift/thrift_hive_metastore.rb on lines 906..910
                        lib/thrift/thrift_hive_metastore.rb on lines 922..926
                        lib/thrift/thrift_hive_metastore.rb on lines 938..942

                        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 27.

                        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 32 locations. Consider refactoring.
                        Open

                            def recv_get_all_tables()
                              result = receive_message(Get_all_tables_result)
                              return result.success unless result.success.nil?
                              raise result.o1 unless result.o1.nil?
                              raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_all_tables failed: unknown result')
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 31 other locations - About 20 mins to fix
                        lib/thrift/thrift_hive.rb on lines 41..45
                        lib/thrift/thrift_hive.rb on lines 57..61
                        lib/thrift/thrift_hive.rb on lines 73..77
                        lib/thrift/thrift_hive.rb on lines 89..93
                        lib/thrift/thrift_hive.rb on lines 105..109
                        lib/thrift/thrift_hive.rb on lines 121..125
                        lib/thrift/thrift_hive.rb on lines 137..141
                        lib/thrift/thrift_hive_metastore.rb on lines 75..79
                        lib/thrift/thrift_hive_metastore.rb on lines 91..95
                        lib/thrift/thrift_hive_metastore.rb on lines 175..179
                        lib/thrift/thrift_hive_metastore.rb on lines 261..265
                        lib/thrift/thrift_hive_metastore.rb on lines 499..503
                        lib/thrift/thrift_hive_metastore.rb on lines 515..519
                        lib/thrift/thrift_hive_metastore.rb on lines 548..552
                        lib/thrift/thrift_hive_metastore.rb on lines 597..601
                        lib/thrift/thrift_hive_metastore.rb on lines 613..617
                        lib/thrift/thrift_hive_metastore.rb on lines 629..633
                        lib/thrift/thrift_hive_metastore.rb on lines 730..734
                        lib/thrift/thrift_hive_metastore.rb on lines 746..750
                        lib/thrift/thrift_hive_metastore.rb on lines 762..766
                        lib/thrift/thrift_hive_metastore.rb on lines 778..782
                        lib/thrift/thrift_hive_metastore.rb on lines 794..798
                        lib/thrift/thrift_hive_metastore.rb on lines 810..814
                        lib/thrift/thrift_hive_metastore.rb on lines 826..830
                        lib/thrift/thrift_hive_metastore.rb on lines 842..846
                        lib/thrift/thrift_hive_metastore.rb on lines 858..862
                        lib/thrift/thrift_hive_metastore.rb on lines 874..878
                        lib/thrift/thrift_hive_metastore.rb on lines 890..894
                        lib/thrift/thrift_hive_metastore.rb on lines 906..910
                        lib/thrift/thrift_hive_metastore.rb on lines 922..926
                        lib/thrift/thrift_hive_metastore.rb on lines 938..942

                        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 27.

                        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 32 locations. Consider refactoring.
                        Open

                            def recv_get_config_value()
                              result = receive_message(Get_config_value_result)
                              return result.success unless result.success.nil?
                              raise result.o1 unless result.o1.nil?
                              raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_config_value failed: unknown result')
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 31 other locations - About 20 mins to fix
                        lib/thrift/thrift_hive.rb on lines 41..45
                        lib/thrift/thrift_hive.rb on lines 57..61
                        lib/thrift/thrift_hive.rb on lines 73..77
                        lib/thrift/thrift_hive.rb on lines 89..93
                        lib/thrift/thrift_hive.rb on lines 105..109
                        lib/thrift/thrift_hive.rb on lines 121..125
                        lib/thrift/thrift_hive.rb on lines 137..141
                        lib/thrift/thrift_hive_metastore.rb on lines 75..79
                        lib/thrift/thrift_hive_metastore.rb on lines 91..95
                        lib/thrift/thrift_hive_metastore.rb on lines 175..179
                        lib/thrift/thrift_hive_metastore.rb on lines 261..265
                        lib/thrift/thrift_hive_metastore.rb on lines 277..281
                        lib/thrift/thrift_hive_metastore.rb on lines 499..503
                        lib/thrift/thrift_hive_metastore.rb on lines 515..519
                        lib/thrift/thrift_hive_metastore.rb on lines 548..552
                        lib/thrift/thrift_hive_metastore.rb on lines 613..617
                        lib/thrift/thrift_hive_metastore.rb on lines 629..633
                        lib/thrift/thrift_hive_metastore.rb on lines 730..734
                        lib/thrift/thrift_hive_metastore.rb on lines 746..750
                        lib/thrift/thrift_hive_metastore.rb on lines 762..766
                        lib/thrift/thrift_hive_metastore.rb on lines 778..782
                        lib/thrift/thrift_hive_metastore.rb on lines 794..798
                        lib/thrift/thrift_hive_metastore.rb on lines 810..814
                        lib/thrift/thrift_hive_metastore.rb on lines 826..830
                        lib/thrift/thrift_hive_metastore.rb on lines 842..846
                        lib/thrift/thrift_hive_metastore.rb on lines 858..862
                        lib/thrift/thrift_hive_metastore.rb on lines 874..878
                        lib/thrift/thrift_hive_metastore.rb on lines 890..894
                        lib/thrift/thrift_hive_metastore.rb on lines 906..910
                        lib/thrift/thrift_hive_metastore.rb on lines 922..926
                        lib/thrift/thrift_hive_metastore.rb on lines 938..942

                        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 27.

                        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 32 locations. Consider refactoring.
                        Open

                            def recv_partition_name_to_vals()
                              result = receive_message(Partition_name_to_vals_result)
                              return result.success unless result.success.nil?
                              raise result.o1 unless result.o1.nil?
                              raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'partition_name_to_vals failed: unknown result')
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 31 other locations - About 20 mins to fix
                        lib/thrift/thrift_hive.rb on lines 41..45
                        lib/thrift/thrift_hive.rb on lines 57..61
                        lib/thrift/thrift_hive.rb on lines 73..77
                        lib/thrift/thrift_hive.rb on lines 89..93
                        lib/thrift/thrift_hive.rb on lines 105..109
                        lib/thrift/thrift_hive.rb on lines 121..125
                        lib/thrift/thrift_hive.rb on lines 137..141
                        lib/thrift/thrift_hive_metastore.rb on lines 75..79
                        lib/thrift/thrift_hive_metastore.rb on lines 91..95
                        lib/thrift/thrift_hive_metastore.rb on lines 175..179
                        lib/thrift/thrift_hive_metastore.rb on lines 261..265
                        lib/thrift/thrift_hive_metastore.rb on lines 277..281
                        lib/thrift/thrift_hive_metastore.rb on lines 499..503
                        lib/thrift/thrift_hive_metastore.rb on lines 515..519
                        lib/thrift/thrift_hive_metastore.rb on lines 548..552
                        lib/thrift/thrift_hive_metastore.rb on lines 597..601
                        lib/thrift/thrift_hive_metastore.rb on lines 629..633
                        lib/thrift/thrift_hive_metastore.rb on lines 730..734
                        lib/thrift/thrift_hive_metastore.rb on lines 746..750
                        lib/thrift/thrift_hive_metastore.rb on lines 762..766
                        lib/thrift/thrift_hive_metastore.rb on lines 778..782
                        lib/thrift/thrift_hive_metastore.rb on lines 794..798
                        lib/thrift/thrift_hive_metastore.rb on lines 810..814
                        lib/thrift/thrift_hive_metastore.rb on lines 826..830
                        lib/thrift/thrift_hive_metastore.rb on lines 842..846
                        lib/thrift/thrift_hive_metastore.rb on lines 858..862
                        lib/thrift/thrift_hive_metastore.rb on lines 874..878
                        lib/thrift/thrift_hive_metastore.rb on lines 890..894
                        lib/thrift/thrift_hive_metastore.rb on lines 906..910
                        lib/thrift/thrift_hive_metastore.rb on lines 922..926
                        lib/thrift/thrift_hive_metastore.rb on lines 938..942

                        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 27.

                        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 32 locations. Consider refactoring.
                        Open

                            def recv_get_privilege_set()
                              result = receive_message(Get_privilege_set_result)
                              return result.success unless result.success.nil?
                              raise result.o1 unless result.o1.nil?
                              raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_privilege_set failed: unknown result')
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 31 other locations - About 20 mins to fix
                        lib/thrift/thrift_hive.rb on lines 41..45
                        lib/thrift/thrift_hive.rb on lines 57..61
                        lib/thrift/thrift_hive.rb on lines 73..77
                        lib/thrift/thrift_hive.rb on lines 89..93
                        lib/thrift/thrift_hive.rb on lines 105..109
                        lib/thrift/thrift_hive.rb on lines 121..125
                        lib/thrift/thrift_hive.rb on lines 137..141
                        lib/thrift/thrift_hive_metastore.rb on lines 75..79
                        lib/thrift/thrift_hive_metastore.rb on lines 91..95
                        lib/thrift/thrift_hive_metastore.rb on lines 175..179
                        lib/thrift/thrift_hive_metastore.rb on lines 261..265
                        lib/thrift/thrift_hive_metastore.rb on lines 277..281
                        lib/thrift/thrift_hive_metastore.rb on lines 499..503
                        lib/thrift/thrift_hive_metastore.rb on lines 515..519
                        lib/thrift/thrift_hive_metastore.rb on lines 548..552
                        lib/thrift/thrift_hive_metastore.rb on lines 597..601
                        lib/thrift/thrift_hive_metastore.rb on lines 613..617
                        lib/thrift/thrift_hive_metastore.rb on lines 629..633
                        lib/thrift/thrift_hive_metastore.rb on lines 730..734
                        lib/thrift/thrift_hive_metastore.rb on lines 746..750
                        lib/thrift/thrift_hive_metastore.rb on lines 762..766
                        lib/thrift/thrift_hive_metastore.rb on lines 778..782
                        lib/thrift/thrift_hive_metastore.rb on lines 794..798
                        lib/thrift/thrift_hive_metastore.rb on lines 810..814
                        lib/thrift/thrift_hive_metastore.rb on lines 826..830
                        lib/thrift/thrift_hive_metastore.rb on lines 858..862
                        lib/thrift/thrift_hive_metastore.rb on lines 874..878
                        lib/thrift/thrift_hive_metastore.rb on lines 890..894
                        lib/thrift/thrift_hive_metastore.rb on lines 906..910
                        lib/thrift/thrift_hive_metastore.rb on lines 922..926
                        lib/thrift/thrift_hive_metastore.rb on lines 938..942

                        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 27.

                        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 32 locations. Consider refactoring.
                        Open

                            def recv_get_tables()
                              result = receive_message(Get_tables_result)
                              return result.success unless result.success.nil?
                              raise result.o1 unless result.o1.nil?
                              raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_tables failed: unknown result')
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 31 other locations - About 20 mins to fix
                        lib/thrift/thrift_hive.rb on lines 41..45
                        lib/thrift/thrift_hive.rb on lines 57..61
                        lib/thrift/thrift_hive.rb on lines 73..77
                        lib/thrift/thrift_hive.rb on lines 89..93
                        lib/thrift/thrift_hive.rb on lines 105..109
                        lib/thrift/thrift_hive.rb on lines 121..125
                        lib/thrift/thrift_hive.rb on lines 137..141
                        lib/thrift/thrift_hive_metastore.rb on lines 75..79
                        lib/thrift/thrift_hive_metastore.rb on lines 91..95
                        lib/thrift/thrift_hive_metastore.rb on lines 175..179
                        lib/thrift/thrift_hive_metastore.rb on lines 277..281
                        lib/thrift/thrift_hive_metastore.rb on lines 499..503
                        lib/thrift/thrift_hive_metastore.rb on lines 515..519
                        lib/thrift/thrift_hive_metastore.rb on lines 548..552
                        lib/thrift/thrift_hive_metastore.rb on lines 597..601
                        lib/thrift/thrift_hive_metastore.rb on lines 613..617
                        lib/thrift/thrift_hive_metastore.rb on lines 629..633
                        lib/thrift/thrift_hive_metastore.rb on lines 730..734
                        lib/thrift/thrift_hive_metastore.rb on lines 746..750
                        lib/thrift/thrift_hive_metastore.rb on lines 762..766
                        lib/thrift/thrift_hive_metastore.rb on lines 778..782
                        lib/thrift/thrift_hive_metastore.rb on lines 794..798
                        lib/thrift/thrift_hive_metastore.rb on lines 810..814
                        lib/thrift/thrift_hive_metastore.rb on lines 826..830
                        lib/thrift/thrift_hive_metastore.rb on lines 842..846
                        lib/thrift/thrift_hive_metastore.rb on lines 858..862
                        lib/thrift/thrift_hive_metastore.rb on lines 874..878
                        lib/thrift/thrift_hive_metastore.rb on lines 890..894
                        lib/thrift/thrift_hive_metastore.rb on lines 906..910
                        lib/thrift/thrift_hive_metastore.rb on lines 922..926
                        lib/thrift/thrift_hive_metastore.rb on lines 938..942

                        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 27.

                        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 32 locations. Consider refactoring.
                        Open

                            def recv_get_delegation_token_with_signature()
                              result = receive_message(Get_delegation_token_with_signature_result)
                              return result.success unless result.success.nil?
                              raise result.o1 unless result.o1.nil?
                              raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_delegation_token_with_signature failed: unknown result')
                        Severity: Major
                        Found in lib/thrift/thrift_hive_metastore.rb and 31 other locations - About 20 mins to fix
                        lib/thrift/thrift_hive.rb on lines 41..45
                        lib/thrift/thrift_hive.rb on lines 57..61
                        lib/thrift/thrift_hive.rb on lines 73..77
                        lib/thrift/thrift_hive.rb on lines 89..93
                        lib/thrift/thrift_hive.rb on lines 105..109
                        lib/thrift/thrift_hive.rb on lines 121..125
                        lib/thrift/thrift_hive.rb on lines 137..141
                        lib/thrift/thrift_hive_metastore.rb on lines 75..79
                        lib/thrift/thrift_hive_metastore.rb on lines 91..95
                        lib/thrift/thrift_hive_metastore.rb on lines 175..179
                        lib/thrift/thrift_hive_metastore.rb on lines 261..265
                        lib/thrift/thrift_hive_metastore.rb on lines 277..281
                        lib/thrift/thrift_hive_metastore.rb on lines 499..503
                        lib/thrift/thrift_hive_metastore.rb on lines 515..519
                        lib/thrift/thrift_hive_metastore.rb on lines 548..552
                        lib/thrift/thrift_hive_metastore.rb on lines 597..601
                        lib/thrift/thrift_hive_metastore.rb on lines 613..617
                        lib/thrift/thrift_hive_metastore.rb on lines 629..633
                        lib/thrift/thrift_hive_metastore.rb on lines 730..734
                        lib/thrift/thrift_hive_metastore.rb on lines 746..750
                        lib/thrift/thrift_hive_metastore.rb on lines 762..766
                        lib/thrift/thrift_hive_metastore.rb on lines 778..782
                        lib/thrift/thrift_hive_metastore.rb on lines 794..798
                        lib/thrift/thrift_hive_metastore.rb on lines 810..814
                        lib/thrift/thrift_hive_metastore.rb on lines 826..830
                        lib/thrift/thrift_hive_metastore.rb on lines 842..846
                        lib/thrift/thrift_hive_metastore.rb on lines 858..862
                        lib/thrift/thrift_hive_metastore.rb on lines 874..878
                        lib/thrift/thrift_hive_metastore.rb on lines 890..894
                        lib/thrift/thrift_hive_metastore.rb on lines 906..910
                        lib/thrift/thrift_hive_metastore.rb on lines 938..942

                        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 27.

                        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 2 locations. Consider refactoring.
                        Open

                            def process_get_all_databases(seqid, iprot, oprot)
                              args = read_args(iprot, Get_all_databases_args)
                              result = Get_all_databases_result.new()
                              begin
                                result.success = @handler.get_all_databases()
                        Severity: Minor
                        Found in lib/thrift/thrift_hive_metastore.rb and 1 other location - About 20 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1544..1552

                        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 27.

                        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 2 locations. Consider refactoring.
                        Open

                            def recv_drop_database()
                              result = receive_message(Drop_database_result)
                              raise result.o1 unless result.o1.nil?
                              raise result.o2 unless result.o2.nil?
                              raise result.o3 unless result.o3.nil?
                        Severity: Minor
                        Found in lib/thrift/thrift_hive_metastore.rb and 1 other location - About 20 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 24..30

                        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 27.

                        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 2 locations. Consider refactoring.
                        Open

                            def recv_create_database()
                              result = receive_message(Create_database_result)
                              raise result.o1 unless result.o1.nil?
                              raise result.o2 unless result.o2.nil?
                              raise result.o3 unless result.o3.nil?
                        Severity: Minor
                        Found in lib/thrift/thrift_hive_metastore.rb and 1 other location - About 20 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 58..64

                        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 27.

                        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 2 locations. Consider refactoring.
                        Open

                            def process_get_role_names(seqid, iprot, oprot)
                              args = read_args(iprot, Get_role_names_args)
                              result = Get_role_names_result.new()
                              begin
                                result.success = @handler.get_role_names()
                        Severity: Minor
                        Found in lib/thrift/thrift_hive_metastore.rb and 1 other location - About 20 mins to fix
                        lib/thrift/thrift_hive_metastore.rb on lines 1019..1027

                        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 27.

                        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

                        There are no issues that match your filters.

                        Category
                        Status