You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: table.rb
    path of file: ./repos/activecube/lib/activecube/processor
    
    the code of the file until where you have to start completion: module Activecube::Processor
  class Table
    attr_reader :model

    def initialize(model)
      @model = model
    en
    
    def join(cube_query, left_query, right_query)
      outer_table = model.arel_table.class.new('').project(Arel.star)

      dimension_names = (cube_query.join_fields + cube_query.slices.map { |s| s.key }).uniq

      left_query_copy = left_query.deep_dup.remove_options
      right_query_copy = right_query.deep_dup.remove_options

      query = outer_table.from(left_query_copy)

      query = if dimension_names.empty?
                query.cross_join(right_query_copy)
              else
                query.join(right_query_copy, ::Arel::Nodes::FullOuterJoin)
                     .using(*dimension_names)
              end