Class: Blazer::Adapters::SparkAdapter

Inherits:
HiveAdapter show all
Defined in:
lib/blazer/adapters/spark_adapter.rb

Instance Attribute Summary

Attributes inherited from BaseAdapter

#data_source

Instance Method Summary collapse

Methods inherited from HiveAdapter

#parameter_binding, #preview_statement, #run_statement

Methods inherited from BaseAdapter

#cachable?, #cancel, #cohort_analysis_statement, #cost, #explain, #initialize, #parameter_binding, #preview_statement, #reconnect, #run_statement, #schema, #supports_cohort_analysis?

Constructor Details

This class inherits a constructor from Blazer::Adapters::BaseAdapter

Instance Method Details

#quotingObject



9
10
11
# File 'lib/blazer/adapters/spark_adapter.rb', line 9

def quoting
  :backslash_escape
end

#tablesObject



4
5
6
# File 'lib/blazer/adapters/spark_adapter.rb', line 4

def tables
  client.execute("SHOW TABLES").map { |r| r["tableName"] }
end