SlideShare ist ein Scribd-Unternehmen logo
1 von 30
Downloaden Sie, um offline zu lesen
Impala SQL Support 
Yue Chen 
http://linkedin.com/in/yuechen2 
http://dataera.wordpress.com
http://dataera.wordpress.com 
http://linkedin.com/in/yuechen2 
Cloudera Impala – SQL Supports 
Because Impala uses the same metadata store as Hive to record information about table structure and properties, Impala can access tables defined through the native Impala CREATE TABLE command, or tables created using the Hive data definition language (DDL). 
Impala supports data manipulation (DML) statements similar to the DML component of HiveQL. 
Impala provides many built-in functions with the same names and parameter types as their HiveQL equivalents
http://dataera.wordpress.com 
http://linkedin.com/in/yuechen2 
Cloudera Impala – SQL Supports 
Data Definition Languages (DDL) 
Data Manipulation Languages (DML) 
Impala Specified Languages (ISL) 
Page 3
http://dataera.wordpress.com 
http://linkedin.com/in/yuechen2 
Cloudera Impala – SQL Supports (DDL) 
Data Definition Language 
CREATE DATABASE Statement 
usage: 
create database first LOCATION hdfs_path]; 
use first; 
CREATE TABLE Statement 
usage: 
CREATE EXTERNAL TABLE tab1 ( id INT, col_1 BOOLEAN, col_2 DOUBLE, col_3 TIMESTAMP ) ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' LOCATION '/user/cloudera/sample_data/tab1'; 
CREATE TABLE tab3 ( id INT, col_1 BOOLEAN, col_2 DOUBLE, month INT, day INT ) ROW FORMAT DELIMITED FIELDS TERMINATED BY ',‘[STORED AS file_format] ; file_format: PARQUET | TEXTFILE | AVRO | SEQUENCEFILE | RCFILE
http://dataera.wordpress.com 
http://linkedin.com/in/yuechen2 
Cloudera Impala – SQL Supports (DDL) 
Data Definition Language 
CREATE TABLE Statement 
usage: 
CREATE EXTERNAL TABLE tab1 ( id INT, col_1 BOOLEAN, col_2 DOUBLE, col_3 TIMESTAMP ) ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' LOCATION '/user/cloudera/sample_data/tab1'; 
CREATE TABLE tab3 ( id INT, col_1 BOOLEAN, col_2 DOUBLE, month INT, day INT ) ROW FORMAT DELIMITED FIELDS TERMINATED BY ',‘[STORED AS file_format] ; 
file_format: PARQUET | TEXTFILE | AVRO | SEQUENCEFILE | RCFILE
http://dataera.wordpress.com 
http://linkedin.com/in/yuechen2 
Cloudera Impala – SQL Supports (DDL) 
Data Definition Language 
CREATE VIEW Statement 
usage: 
create view v1 as select * from t1; create view v2 as select c1, c3, c7 from t1; 
create view v3 as select c1, cast(c3 as string) c3, concat(c4,c5) c5, trim(c6) c6, "Constant" c8 from t1; 
create view v4 as select t1.c1, t2.c2 from t1 join t2 on t1.id = t2.id; create view some_db.v5 as select * from some_other_db.t1;
http://dataera.wordpress.com 
http://linkedin.com/in/yuechen2 
Cloudera Impala – SQL Supports (DDL) 
Data Definition Language 
ALTER TABLE Statement 
usage: 
create database d1; create database d2; create database d3; 
use d1; 
create table mobile (x int); 
use d2; -- Move table from another database to the current one. 
alter table d1.mobile rename to mobile; use d1; 
alter table d2.mobile rename to d3.mobile; -- Move table from one database to another. 
create table p1 (s string) partitioned by (month int, day int); 
alter table p1 partition (month=1, day=1) set location ‘/usr/external_data/new_years_day'
http://dataera.wordpress.com 
http://linkedin.com/in/yuechen2 
Cloudera Impala – SQL Supports (DDL) 
Data Definition Language 
ALTER VIEW Statement 
usage: 
create table t1 (x int, y int, s string); 
create table t2 like t1; 
create view v1 as select * from t1; 
alter view v1 as select * from t2;
http://dataera.wordpress.com 
http://linkedin.com/in/yuechen2 
Cloudera Impala – SQL Supports (DDL) 
Data Definition Language 
Compute Stats Statement 
usage: 
show table stats t1; 
show column stats t1; 
compute stats t1;
http://dataera.wordpress.com 
http://linkedin.com/in/yuechen2 
Cloudera Impala – SQL Supports (DML) 
DML Statements 
Impala supports data manipulation (DML) statements similar to the DML component of HiveQL.
http://dataera.wordpress.com 
http://linkedin.com/in/yuechen2 
Cloudera Impala – SQL Supports (DML) 
DML Statements 
 INSERT Statement 
 LOAD DATA Statement
http://dataera.wordpress.com 
http://linkedin.com/in/yuechen2 
Cloudera Impala – SQL Supports (DML) 
DML Statements 
 INSERT Statement 
Impala supports inserting into tables and partitions that you create with the Impala CREATE TABLE statement, or pre-defined tables and partitions created through Hive.
http://dataera.wordpress.com 
http://linkedin.com/in/yuechen2 
Cloudera Impala – SQL Supports (DML) 
DML Insert Statements 
INSERT INTO to append data to a table. 
INSERT OVERWRITE to replace the data in a table. 
Copy data from another table using SELECT query. 
An optional with clause before the INSERT keyword, to define a subquery referenced in the SELECT portion. 
Create one or more new rows using constant expressions through VALUES clause. 
Specify the names or order of columns to be inserted, different than the columns of the table being queried by the INSERT statement.
http://dataera.wordpress.com 
http://linkedin.com/in/yuechen2 
Cloudera Impala – SQL Supports (DML) 
DML Insert Statements 
Eg: insert into table text_table select * from default.tab1 
Eg: insert overwrite table parquet_table select * from default.tab1 
Eg: insert into val_test_1 values (100, 99.9/10, 'abc', true, now()); 
Eg: insert overwrite val_test_2 values (1, 'a'), (2, 'b'), (-1,'xyzzy'); 
Eg:CREATE TABLE rc_table ( id INT, col_1 BOOLEAN, col_2 DOUBLE, col_3 TIMESTAMP ) STORED AS RCFILE; 
insert into table rc_table select * from default.tab1; Remote error Backend 0:RC_FILE not implemented.
http://dataera.wordpress.com 
http://linkedin.com/in/yuechen2 
Cloudera Impala – SQL Supports (DML) 
DML Insert Statements 
Eg: insert into table text_table select * from default.tab1 
Eg: insert overwrite table parquet_table select * from default.tab1 
Eg: insert into val_test_1 values (100, 99.9/10, 'abc', true, now()); 
Eg: insert overwrite val_test_2 values (1, 'a'), (2, 'b'), (-1,'xyzzy'); 
Eg:CREATE TABLE rc_table ( id INT, col_1 BOOLEAN, col_2 DOUBLE, col_3 TIMESTAMP ) STORED AS RCFILE; 
insert into table rc_table select * from default.tab1; Remote error Backend 0:RC_FILE not implemented. 
Note: The above examples show the type of "not implemented" error that you see when attempting to insert data into a table with a file format that Impala currently does not write to
http://dataera.wordpress.com 
http://linkedin.com/in/yuechen2 
Cloudera Impala – SQL Supports (DML) 
DML Insert Statements 
An optional hint clause immediately before the SELECT keyword, to fine-tune the behavior when doing an INSERT ... SELECT operation into partitioned Parquet tables. The hint keywords are [SHUFFLE] and [NOSHUFFLE], including the square brackets. Inserting into partitioned Parquet tables can be a resource-intensive operation because it potentially involves many files being written to HDFS simultaneously.
http://dataera.wordpress.com 
http://linkedin.com/in/yuechen2 
Cloudera Impala – SQL Supports (DML) 
DML Insert Statements 
oselect customer.address, state_lookup.state_name from customer join [broadcast] state_lookup on customer.state_id = state_lookup.state_id; 
•This query joins a large customer table with a small lookup table of less than 100 rows. The right-hand table can be broadcast efficiently to all nodes involved in the join. Thus, you would use the [broadcast] hint to force a broadcast join strategy.
http://dataera.wordpress.com 
http://linkedin.com/in/yuechen2 
Cloudera Impala – SQL Supports (DML) 
DML Insert Statements 
oselect weather.wind_velocity, geospatial.altitude from weather join [shuffle] geospatial on weather.lat = geospatial.lat and weather.long = geospatial.long; 
This query joins two large tables of unpredictable size. You might benchmark the query with both kinds of hints and find that it is more efficient to transmit portions of each table to other nodes for processing. Thus, you would use the [shuffle] hint to force a partitioned join strategy.
http://dataera.wordpress.com 
http://linkedin.com/in/yuechen2 
Cloudera Impala – SQL Supports (DML) 
Loading Statements 
The LOAD DATA statement streamlines the ETL process for an internal Impala table by moving a data file or all the data files in a directory from an HDFS location into the Impala data directory for that table.
http://dataera.wordpress.com 
http://linkedin.com/in/yuechen2 
Cloudera Impala – SQL Supports (DML) 
Loading Statements 
usage: 
create table t1 (s string); 
load data inpath '/user/cloudera/thousand_strings.txt' into table t1; 
load data inpath '/user/cloudera/ten_strings.txt' overwrite into table t1;
http://dataera.wordpress.com 
http://linkedin.com/in/yuechen2 
Cloudera Impala – SQL Supports (DML) 
Loading Statements Notes:
http://dataera.wordpress.com 
http://linkedin.com/in/yuechen2 
Cloudera Impala – SQL Supports (DML) 
Loading Statements Notes: 
The loaded data files are moved, not copied, into the Impala data directory.
http://dataera.wordpress.com 
http://linkedin.com/in/yuechen2 
Cloudera Impala – SQL Supports (DML) 
Loading Statements Notes: 
The loaded data files are moved, not copied, into the Impala data directory. 
You can specify the HDFS path of a single file to be moved, or the HDFS path of a directory to move all the files inside that directory. You cannot specify any sort of wildcard to take only some of the files from a directory. When loading a directory full of data files, keep all the data files at the top level, with no nested directories underneath.
http://dataera.wordpress.com 
http://linkedin.com/in/yuechen2 
Cloudera Impala – SQL Supports (DML) 
Loading Statements Notes: 
The loaded data files are moved, not copied, into the Impala data directory. 
You can specify the HDFS path of a single file to be moved, or the HDFS path of a directory to move all the files inside that directory. You cannot specify any sort of wildcard to take only some of the files from a directory. When loading a directory full of data files, keep all the data files at the top level, with no nested directories underneath. 
Currently, the Impala LOAD DATA statement only imports files from HDFS, not from the local file system.
http://dataera.wordpress.com 
http://linkedin.com/in/yuechen2 
Cloudera Impala – SQL Supports (ISL) 
Usage: 
REFRESH table_name 
Notes: 
o Use the REFRESH statement to load the latest metastore metadata and block location data for a particular table in these scenarios: 
oAfter loading new data files into the HDFS data directory for the table. (Once you have set up an ETL pipeline to bring data into Impala on a regular basis, this is typically the most frequent reason why metadata needs to be refreshed.) 
oAfter issuing ALTER TABLE, INSERT, LOAD DATA, or other table-modifying SQL statement in Hive
http://dataera.wordpress.com 
http://linkedin.com/in/yuechen2 
Cloudera Impala – SQL Supports (ISL) 
Usage: 
INVALIDATE METADATA [table_name] 
Notes: 
oA metadata update for an impalad instance is required if: 
oA metadata change occurs. 
oand the change is made from another impalad instance in your cluster, or through Hive. 
oand the change is made to a database to which clients such as the Impala shell or ODBC directly connect.
http://dataera.wordpress.com 
http://linkedin.com/in/yuechen2 
Cloudera Impala – SQL Supports (ISL) 
Usage: 
Show Statements: 
SHOW DATABASES [[LIKE] 'pattern'] 
SHOW SCHEMAS [[LIKE] 'pattern'] - an alias for SHOW DATABASES SHOW TABLES [IN database_name] [[LIKE] 'pattern'] 
SHOW [AGGREGATE] FUNCTIONS [IN database_name] [[LIKE] 'pattern'] 
SHOW CREATE TABLE [database_name].table_name 
SHOW TABLE STATS [database_name.]table_name 
SHOW COLUMN STATS [database_name.]table_name 
SHOW PARTITIONS [database_name.]table_name
http://dataera.wordpress.com 
http://linkedin.com/in/yuechen2 
Cloudera Impala – SQL Supports (DML) 
Impala does not support the following SQL features 
Non-scalar data types such as maps, arrays, structs. 
Extensibility mechanisms such as TRANSFORM, custom file formats. 
XML and JSON functions. 
Certain aggregate functions from HiveQL: variance,var_pop,var_samp,stddev_pop,stddev_samp,covar_pop,covar_samp,corr,percentile,percentile_approx,histogram_numeric,collect_set. 
Sampling. 
Lateral views. 
Multiple DISTINCT clauses per query.
http://dataera.wordpress.com 
http://linkedin.com/in/yuechen2 
Cloudera Impala – SQL Supports (DML) 
Impala does not currently support these HiveQL statements: 
ANALYZE TABLE (the Impala equivalent is COMPUTE STATS) 
DESCRIBE COLUMN 
DESCRIBE DATABASE 
EXPORT TABLE 
IMPORT TABLE 
SHOW PARTITIONS 
SHOW TABLE EXTENDED 
SHOW INDEXES 
SHOW COLUMNS
http://dataera.wordpress.com 
http://linkedin.com/in/yuechen2 
References 
Cloudera Impala official documentation and slides 
http://www.cloudera.com/content/cloudera-content/cloudera- docs/Impala/latest/Installing-and-Using-Impala/ciiu_langref_sql.html

Weitere ähnliche Inhalte

Was ist angesagt?

OTN TOUR 2016 - DBA Commands and Concepts That Every Developer Should Know
OTN TOUR 2016 - DBA Commands and Concepts That Every Developer Should KnowOTN TOUR 2016 - DBA Commands and Concepts That Every Developer Should Know
OTN TOUR 2016 - DBA Commands and Concepts That Every Developer Should KnowAlex Zaballa
 
OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...
OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...
OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...Alex Zaballa
 
Sql Server 2008 New Programmability Features
Sql Server 2008 New Programmability FeaturesSql Server 2008 New Programmability Features
Sql Server 2008 New Programmability Featuressqlserver.co.il
 
Oracle Database 12c "New features"
Oracle Database 12c "New features" Oracle Database 12c "New features"
Oracle Database 12c "New features" Anar Godjaev
 
Recent Additions to Lucene Arsenal
Recent Additions to Lucene ArsenalRecent Additions to Lucene Arsenal
Recent Additions to Lucene Arsenallucenerevolution
 
DBA Brasil 1.0 - DBA Commands and Concepts That Every Developer Should Know
DBA Brasil 1.0 - DBA Commands and Concepts That Every Developer Should KnowDBA Brasil 1.0 - DBA Commands and Concepts That Every Developer Should Know
DBA Brasil 1.0 - DBA Commands and Concepts That Every Developer Should KnowAlex Zaballa
 
DBA Brasil 1.0 - DBA Commands and Concepts That Every Developer Should Know
DBA Brasil 1.0 - DBA Commands and Concepts That Every Developer Should KnowDBA Brasil 1.0 - DBA Commands and Concepts That Every Developer Should Know
DBA Brasil 1.0 - DBA Commands and Concepts That Every Developer Should KnowAlex Zaballa
 
Less18 moving data
Less18 moving dataLess18 moving data
Less18 moving dataImran Ali
 
Dan Hotka's Top 10 Oracle 12c New Features
Dan Hotka's Top 10 Oracle 12c New FeaturesDan Hotka's Top 10 Oracle 12c New Features
Dan Hotka's Top 10 Oracle 12c New FeaturesEmbarcadero Technologies
 
Oracle Database 12c - New Features for Developers and DBAs
Oracle Database 12c  - New Features for Developers and DBAsOracle Database 12c  - New Features for Developers and DBAs
Oracle Database 12c - New Features for Developers and DBAsAlex Zaballa
 
Oracle Database 12c Release 2 - New Features On Oracle Database Exadata Expre...
Oracle Database 12c Release 2 - New Features On Oracle Database Exadata Expre...Oracle Database 12c Release 2 - New Features On Oracle Database Exadata Expre...
Oracle Database 12c Release 2 - New Features On Oracle Database Exadata Expre...Alex Zaballa
 
Oracle 12c New Features for Developers
Oracle 12c New Features for DevelopersOracle 12c New Features for Developers
Oracle 12c New Features for DevelopersCompleteITProfessional
 
TSQL in SQL Server 2012
TSQL in SQL Server 2012TSQL in SQL Server 2012
TSQL in SQL Server 2012Eduardo Castro
 
DBA Commands and Concepts That Every Developer Should Know
DBA Commands and Concepts That Every Developer Should KnowDBA Commands and Concepts That Every Developer Should Know
DBA Commands and Concepts That Every Developer Should KnowAlex Zaballa
 

Was ist angesagt? (19)

OTN TOUR 2016 - DBA Commands and Concepts That Every Developer Should Know
OTN TOUR 2016 - DBA Commands and Concepts That Every Developer Should KnowOTN TOUR 2016 - DBA Commands and Concepts That Every Developer Should Know
OTN TOUR 2016 - DBA Commands and Concepts That Every Developer Should Know
 
OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...
OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...
OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...
 
Sql Server 2008 New Programmability Features
Sql Server 2008 New Programmability FeaturesSql Server 2008 New Programmability Features
Sql Server 2008 New Programmability Features
 
Oracle Database 12c "New features"
Oracle Database 12c "New features" Oracle Database 12c "New features"
Oracle Database 12c "New features"
 
Recent Additions to Lucene Arsenal
Recent Additions to Lucene ArsenalRecent Additions to Lucene Arsenal
Recent Additions to Lucene Arsenal
 
DBA Brasil 1.0 - DBA Commands and Concepts That Every Developer Should Know
DBA Brasil 1.0 - DBA Commands and Concepts That Every Developer Should KnowDBA Brasil 1.0 - DBA Commands and Concepts That Every Developer Should Know
DBA Brasil 1.0 - DBA Commands and Concepts That Every Developer Should Know
 
DBA Brasil 1.0 - DBA Commands and Concepts That Every Developer Should Know
DBA Brasil 1.0 - DBA Commands and Concepts That Every Developer Should KnowDBA Brasil 1.0 - DBA Commands and Concepts That Every Developer Should Know
DBA Brasil 1.0 - DBA Commands and Concepts That Every Developer Should Know
 
Less18 moving data
Less18 moving dataLess18 moving data
Less18 moving data
 
Dan Hotka's Top 10 Oracle 12c New Features
Dan Hotka's Top 10 Oracle 12c New FeaturesDan Hotka's Top 10 Oracle 12c New Features
Dan Hotka's Top 10 Oracle 12c New Features
 
Oracle Database 12c - New Features for Developers and DBAs
Oracle Database 12c  - New Features for Developers and DBAsOracle Database 12c  - New Features for Developers and DBAs
Oracle Database 12c - New Features for Developers and DBAs
 
Oracle Database 12c Release 2 - New Features On Oracle Database Exadata Expre...
Oracle Database 12c Release 2 - New Features On Oracle Database Exadata Expre...Oracle Database 12c Release 2 - New Features On Oracle Database Exadata Expre...
Oracle Database 12c Release 2 - New Features On Oracle Database Exadata Expre...
 
Oracle 12c New Features for Developers
Oracle 12c New Features for DevelopersOracle 12c New Features for Developers
Oracle 12c New Features for Developers
 
221 Rac
221 Rac221 Rac
221 Rac
 
Cloning 2
Cloning 2Cloning 2
Cloning 2
 
Sql Injection 0wning Enterprise
Sql Injection 0wning EnterpriseSql Injection 0wning Enterprise
Sql Injection 0wning Enterprise
 
TSQL in SQL Server 2012
TSQL in SQL Server 2012TSQL in SQL Server 2012
TSQL in SQL Server 2012
 
261 Rac
261 Rac261 Rac
261 Rac
 
DBA Commands and Concepts That Every Developer Should Know
DBA Commands and Concepts That Every Developer Should KnowDBA Commands and Concepts That Every Developer Should Know
DBA Commands and Concepts That Every Developer Should Know
 
381 Rac
381 Rac381 Rac
381 Rac
 

Andere mochten auch

SecPod: A Framework for Virtualization-based Security Systems
SecPod: A Framework for Virtualization-based Security SystemsSecPod: A Framework for Virtualization-based Security Systems
SecPod: A Framework for Virtualization-based Security SystemsYue Chen
 
Impala Architecture presentation
Impala Architecture presentationImpala Architecture presentation
Impala Architecture presentationhadooparchbook
 
White paper hadoop performancetuning
White paper hadoop performancetuningWhite paper hadoop performancetuning
White paper hadoop performancetuningAnil Reddy
 
Data Infused Product Design and Insights at LinkedIn
Data Infused Product Design and Insights at LinkedInData Infused Product Design and Insights at LinkedIn
Data Infused Product Design and Insights at LinkedInYael Garten
 
A Perspective from the intersection Data Science, Mobility, and Mobile Devices
A Perspective from the intersection Data Science, Mobility, and Mobile DevicesA Perspective from the intersection Data Science, Mobility, and Mobile Devices
A Perspective from the intersection Data Science, Mobility, and Mobile DevicesYael Garten
 
Remix: On-demand Live Randomization (Fine-grained live ASLR during runtime)
Remix: On-demand Live Randomization (Fine-grained live ASLR during runtime)Remix: On-demand Live Randomization (Fine-grained live ASLR during runtime)
Remix: On-demand Live Randomization (Fine-grained live ASLR during runtime)Yue Chen
 
Admission Control in Impala
Admission Control in ImpalaAdmission Control in Impala
Admission Control in ImpalaCloudera, Inc.
 
Cloudera Impala Source Code Explanation and Analysis
Cloudera Impala Source Code Explanation and AnalysisCloudera Impala Source Code Explanation and Analysis
Cloudera Impala Source Code Explanation and AnalysisYue Chen
 
Apache Impala (incubating) 2.5 Performance Update
Apache Impala (incubating) 2.5 Performance UpdateApache Impala (incubating) 2.5 Performance Update
Apache Impala (incubating) 2.5 Performance UpdateCloudera, Inc.
 
Hadoop application architectures - Fraud detection tutorial
Hadoop application architectures - Fraud detection tutorialHadoop application architectures - Fraud detection tutorial
Hadoop application architectures - Fraud detection tutorialhadooparchbook
 
How to use your data science team: Becoming a data-driven organization
How to use your data science team: Becoming a data-driven organizationHow to use your data science team: Becoming a data-driven organization
How to use your data science team: Becoming a data-driven organizationYael Garten
 
Data Modeling for Data Science: Simplify Your Workload with Complex Types in ...
Data Modeling for Data Science: Simplify Your Workload with Complex Types in ...Data Modeling for Data Science: Simplify Your Workload with Complex Types in ...
Data Modeling for Data Science: Simplify Your Workload with Complex Types in ...Cloudera, Inc.
 
Nested Types in Impala
Nested Types in ImpalaNested Types in Impala
Nested Types in ImpalaCloudera, Inc.
 
Architecting next generation big data platform
Architecting next generation big data platformArchitecting next generation big data platform
Architecting next generation big data platformhadooparchbook
 
Faster Batch Processing with Cloudera 5.7: Hive-on-Spark is ready for production
Faster Batch Processing with Cloudera 5.7: Hive-on-Spark is ready for productionFaster Batch Processing with Cloudera 5.7: Hive-on-Spark is ready for production
Faster Batch Processing with Cloudera 5.7: Hive-on-Spark is ready for productionCloudera, Inc.
 
What no one tells you about writing a streaming app
What no one tells you about writing a streaming appWhat no one tells you about writing a streaming app
What no one tells you about writing a streaming apphadooparchbook
 
Hoodie: Incremental processing on hadoop
Hoodie: Incremental processing on hadoopHoodie: Incremental processing on hadoop
Hoodie: Incremental processing on hadoopPrasanna Rajaperumal
 
Top 5 mistakes when writing Spark applications
Top 5 mistakes when writing Spark applicationsTop 5 mistakes when writing Spark applications
Top 5 mistakes when writing Spark applicationshadooparchbook
 
Top 5 mistakes when writing Spark applications
Top 5 mistakes when writing Spark applicationsTop 5 mistakes when writing Spark applications
Top 5 mistakes when writing Spark applicationshadooparchbook
 
Streaming architecture patterns
Streaming architecture patternsStreaming architecture patterns
Streaming architecture patternshadooparchbook
 

Andere mochten auch (20)

SecPod: A Framework for Virtualization-based Security Systems
SecPod: A Framework for Virtualization-based Security SystemsSecPod: A Framework for Virtualization-based Security Systems
SecPod: A Framework for Virtualization-based Security Systems
 
Impala Architecture presentation
Impala Architecture presentationImpala Architecture presentation
Impala Architecture presentation
 
White paper hadoop performancetuning
White paper hadoop performancetuningWhite paper hadoop performancetuning
White paper hadoop performancetuning
 
Data Infused Product Design and Insights at LinkedIn
Data Infused Product Design and Insights at LinkedInData Infused Product Design and Insights at LinkedIn
Data Infused Product Design and Insights at LinkedIn
 
A Perspective from the intersection Data Science, Mobility, and Mobile Devices
A Perspective from the intersection Data Science, Mobility, and Mobile DevicesA Perspective from the intersection Data Science, Mobility, and Mobile Devices
A Perspective from the intersection Data Science, Mobility, and Mobile Devices
 
Remix: On-demand Live Randomization (Fine-grained live ASLR during runtime)
Remix: On-demand Live Randomization (Fine-grained live ASLR during runtime)Remix: On-demand Live Randomization (Fine-grained live ASLR during runtime)
Remix: On-demand Live Randomization (Fine-grained live ASLR during runtime)
 
Admission Control in Impala
Admission Control in ImpalaAdmission Control in Impala
Admission Control in Impala
 
Cloudera Impala Source Code Explanation and Analysis
Cloudera Impala Source Code Explanation and AnalysisCloudera Impala Source Code Explanation and Analysis
Cloudera Impala Source Code Explanation and Analysis
 
Apache Impala (incubating) 2.5 Performance Update
Apache Impala (incubating) 2.5 Performance UpdateApache Impala (incubating) 2.5 Performance Update
Apache Impala (incubating) 2.5 Performance Update
 
Hadoop application architectures - Fraud detection tutorial
Hadoop application architectures - Fraud detection tutorialHadoop application architectures - Fraud detection tutorial
Hadoop application architectures - Fraud detection tutorial
 
How to use your data science team: Becoming a data-driven organization
How to use your data science team: Becoming a data-driven organizationHow to use your data science team: Becoming a data-driven organization
How to use your data science team: Becoming a data-driven organization
 
Data Modeling for Data Science: Simplify Your Workload with Complex Types in ...
Data Modeling for Data Science: Simplify Your Workload with Complex Types in ...Data Modeling for Data Science: Simplify Your Workload with Complex Types in ...
Data Modeling for Data Science: Simplify Your Workload with Complex Types in ...
 
Nested Types in Impala
Nested Types in ImpalaNested Types in Impala
Nested Types in Impala
 
Architecting next generation big data platform
Architecting next generation big data platformArchitecting next generation big data platform
Architecting next generation big data platform
 
Faster Batch Processing with Cloudera 5.7: Hive-on-Spark is ready for production
Faster Batch Processing with Cloudera 5.7: Hive-on-Spark is ready for productionFaster Batch Processing with Cloudera 5.7: Hive-on-Spark is ready for production
Faster Batch Processing with Cloudera 5.7: Hive-on-Spark is ready for production
 
What no one tells you about writing a streaming app
What no one tells you about writing a streaming appWhat no one tells you about writing a streaming app
What no one tells you about writing a streaming app
 
Hoodie: Incremental processing on hadoop
Hoodie: Incremental processing on hadoopHoodie: Incremental processing on hadoop
Hoodie: Incremental processing on hadoop
 
Top 5 mistakes when writing Spark applications
Top 5 mistakes when writing Spark applicationsTop 5 mistakes when writing Spark applications
Top 5 mistakes when writing Spark applications
 
Top 5 mistakes when writing Spark applications
Top 5 mistakes when writing Spark applicationsTop 5 mistakes when writing Spark applications
Top 5 mistakes when writing Spark applications
 
Streaming architecture patterns
Streaming architecture patternsStreaming architecture patterns
Streaming architecture patterns
 

Ähnlich wie Impala SQL Support

PostgreSQL Database Slides
PostgreSQL Database SlidesPostgreSQL Database Slides
PostgreSQL Database Slidesmetsarin
 
Database Management Lab -SQL Queries
Database Management Lab -SQL Queries Database Management Lab -SQL Queries
Database Management Lab -SQL Queries shamim hossain
 
Introduction to Oracle Database.pptx
Introduction to Oracle Database.pptxIntroduction to Oracle Database.pptx
Introduction to Oracle Database.pptxSiddhantBhardwaj26
 
An overview of snowflake
An overview of snowflakeAn overview of snowflake
An overview of snowflakeSivakumar Ramar
 
OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...
OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...
OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...Alex Zaballa
 
Getting Started with MySQL I
Getting Started with MySQL IGetting Started with MySQL I
Getting Started with MySQL ISankhya_Analytics
 
My sql with querys
My sql with querysMy sql with querys
My sql with querysNIRMAL FELIX
 
SQL Server 2008 Performance Enhancements
SQL Server 2008 Performance EnhancementsSQL Server 2008 Performance Enhancements
SQL Server 2008 Performance Enhancementsinfusiondev
 
mysqlanditsbasiccommands-150226033905-conversion-gate02.pdf
mysqlanditsbasiccommands-150226033905-conversion-gate02.pdfmysqlanditsbasiccommands-150226033905-conversion-gate02.pdf
mysqlanditsbasiccommands-150226033905-conversion-gate02.pdfpradnyamulay
 
Sql Summit Clr, Service Broker And Xml
Sql Summit   Clr, Service Broker And XmlSql Summit   Clr, Service Broker And Xml
Sql Summit Clr, Service Broker And XmlDavid Truxall
 
Database COMPLETE
Database COMPLETEDatabase COMPLETE
Database COMPLETEAbrar ali
 
Chapter 3.pptx Oracle SQL or local Android database setup SQL, SQL-Lite, codi...
Chapter 3.pptx Oracle SQL or local Android database setup SQL, SQL-Lite, codi...Chapter 3.pptx Oracle SQL or local Android database setup SQL, SQL-Lite, codi...
Chapter 3.pptx Oracle SQL or local Android database setup SQL, SQL-Lite, codi...TAISEEREISA
 

Ähnlich wie Impala SQL Support (20)

Sql
SqlSql
Sql
 
PostgreSQL Database Slides
PostgreSQL Database SlidesPostgreSQL Database Slides
PostgreSQL Database Slides
 
LECTURE NOTES.pdf
LECTURE NOTES.pdfLECTURE NOTES.pdf
LECTURE NOTES.pdf
 
LECTURE NOTES.pdf
LECTURE NOTES.pdfLECTURE NOTES.pdf
LECTURE NOTES.pdf
 
PT- Oracle session01
PT- Oracle session01 PT- Oracle session01
PT- Oracle session01
 
Database Management Lab -SQL Queries
Database Management Lab -SQL Queries Database Management Lab -SQL Queries
Database Management Lab -SQL Queries
 
Introduction to Oracle Database.pptx
Introduction to Oracle Database.pptxIntroduction to Oracle Database.pptx
Introduction to Oracle Database.pptx
 
An overview of snowflake
An overview of snowflakeAn overview of snowflake
An overview of snowflake
 
OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...
OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...
OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...
 
Getting Started with MySQL I
Getting Started with MySQL IGetting Started with MySQL I
Getting Started with MySQL I
 
My sql with querys
My sql with querysMy sql with querys
My sql with querys
 
SQL Server 2008 Performance Enhancements
SQL Server 2008 Performance EnhancementsSQL Server 2008 Performance Enhancements
SQL Server 2008 Performance Enhancements
 
mysqlanditsbasiccommands-150226033905-conversion-gate02.pdf
mysqlanditsbasiccommands-150226033905-conversion-gate02.pdfmysqlanditsbasiccommands-150226033905-conversion-gate02.pdf
mysqlanditsbasiccommands-150226033905-conversion-gate02.pdf
 
MySQL and its basic commands
MySQL and its basic commandsMySQL and its basic commands
MySQL and its basic commands
 
My sql.ppt
My sql.pptMy sql.ppt
My sql.ppt
 
Sql Summit Clr, Service Broker And Xml
Sql Summit   Clr, Service Broker And XmlSql Summit   Clr, Service Broker And Xml
Sql Summit Clr, Service Broker And Xml
 
MySql slides (ppt)
MySql slides (ppt)MySql slides (ppt)
MySql slides (ppt)
 
Database COMPLETE
Database COMPLETEDatabase COMPLETE
Database COMPLETE
 
Sql lite android
Sql lite androidSql lite android
Sql lite android
 
Chapter 3.pptx Oracle SQL or local Android database setup SQL, SQL-Lite, codi...
Chapter 3.pptx Oracle SQL or local Android database setup SQL, SQL-Lite, codi...Chapter 3.pptx Oracle SQL or local Android database setup SQL, SQL-Lite, codi...
Chapter 3.pptx Oracle SQL or local Android database setup SQL, SQL-Lite, codi...
 

Mehr von Yue Chen

KARMA: Adaptive Android Kernel Live Patching
KARMA: Adaptive Android Kernel Live PatchingKARMA: Adaptive Android Kernel Live Patching
KARMA: Adaptive Android Kernel Live PatchingYue Chen
 
EncExec: Secure In-Cache Execution
EncExec: Secure In-Cache ExecutionEncExec: Secure In-Cache Execution
EncExec: Secure In-Cache ExecutionYue Chen
 
Ravel: Pinpointing Vulnerabilities
Ravel: Pinpointing VulnerabilitiesRavel: Pinpointing Vulnerabilities
Ravel: Pinpointing VulnerabilitiesYue Chen
 
Pinpointing Vulnerabilities (Ravel)
Pinpointing Vulnerabilities (Ravel)Pinpointing Vulnerabilities (Ravel)
Pinpointing Vulnerabilities (Ravel)Yue Chen
 
Inside Parquet Format
Inside Parquet FormatInside Parquet Format
Inside Parquet FormatYue Chen
 
How Impala Works
How Impala WorksHow Impala Works
How Impala WorksYue Chen
 

Mehr von Yue Chen (6)

KARMA: Adaptive Android Kernel Live Patching
KARMA: Adaptive Android Kernel Live PatchingKARMA: Adaptive Android Kernel Live Patching
KARMA: Adaptive Android Kernel Live Patching
 
EncExec: Secure In-Cache Execution
EncExec: Secure In-Cache ExecutionEncExec: Secure In-Cache Execution
EncExec: Secure In-Cache Execution
 
Ravel: Pinpointing Vulnerabilities
Ravel: Pinpointing VulnerabilitiesRavel: Pinpointing Vulnerabilities
Ravel: Pinpointing Vulnerabilities
 
Pinpointing Vulnerabilities (Ravel)
Pinpointing Vulnerabilities (Ravel)Pinpointing Vulnerabilities (Ravel)
Pinpointing Vulnerabilities (Ravel)
 
Inside Parquet Format
Inside Parquet FormatInside Parquet Format
Inside Parquet Format
 
How Impala Works
How Impala WorksHow Impala Works
How Impala Works
 

Kürzlich hochgeladen

%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyviewmasabamasaba
 
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...Shane Coughlan
 
Harnessing ChatGPT - Elevating Productivity in Today's Agile Environment
Harnessing ChatGPT  - Elevating Productivity in Today's Agile EnvironmentHarnessing ChatGPT  - Elevating Productivity in Today's Agile Environment
Harnessing ChatGPT - Elevating Productivity in Today's Agile EnvironmentVictorSzoltysek
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️Delhi Call girls
 
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...masabamasaba
 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...SelfMade bd
 
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...Jittipong Loespradit
 
WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension AidPhilip Schwarz
 
%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Harare%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Hararemasabamasaba
 
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2
 
WSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With SimplicityWSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With SimplicityWSO2
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...masabamasaba
 
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...masabamasaba
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...masabamasaba
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park masabamasaba
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsJhone kinadey
 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...masabamasaba
 
Define the academic and professional writing..pdf
Define the academic and professional writing..pdfDefine the academic and professional writing..pdf
Define the academic and professional writing..pdfPearlKirahMaeRagusta1
 

Kürzlich hochgeladen (20)

%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
 
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
 
Harnessing ChatGPT - Elevating Productivity in Today's Agile Environment
Harnessing ChatGPT  - Elevating Productivity in Today's Agile EnvironmentHarnessing ChatGPT  - Elevating Productivity in Today's Agile Environment
Harnessing ChatGPT - Elevating Productivity in Today's Agile Environment
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
 
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
 
WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Harare%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Harare
 
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
 
WSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With SimplicityWSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
 
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
 
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
 
Define the academic and professional writing..pdf
Define the academic and professional writing..pdfDefine the academic and professional writing..pdf
Define the academic and professional writing..pdf
 

Impala SQL Support

  • 1. Impala SQL Support Yue Chen http://linkedin.com/in/yuechen2 http://dataera.wordpress.com
  • 2. http://dataera.wordpress.com http://linkedin.com/in/yuechen2 Cloudera Impala – SQL Supports Because Impala uses the same metadata store as Hive to record information about table structure and properties, Impala can access tables defined through the native Impala CREATE TABLE command, or tables created using the Hive data definition language (DDL). Impala supports data manipulation (DML) statements similar to the DML component of HiveQL. Impala provides many built-in functions with the same names and parameter types as their HiveQL equivalents
  • 3. http://dataera.wordpress.com http://linkedin.com/in/yuechen2 Cloudera Impala – SQL Supports Data Definition Languages (DDL) Data Manipulation Languages (DML) Impala Specified Languages (ISL) Page 3
  • 4. http://dataera.wordpress.com http://linkedin.com/in/yuechen2 Cloudera Impala – SQL Supports (DDL) Data Definition Language CREATE DATABASE Statement usage: create database first LOCATION hdfs_path]; use first; CREATE TABLE Statement usage: CREATE EXTERNAL TABLE tab1 ( id INT, col_1 BOOLEAN, col_2 DOUBLE, col_3 TIMESTAMP ) ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' LOCATION '/user/cloudera/sample_data/tab1'; CREATE TABLE tab3 ( id INT, col_1 BOOLEAN, col_2 DOUBLE, month INT, day INT ) ROW FORMAT DELIMITED FIELDS TERMINATED BY ',‘[STORED AS file_format] ; file_format: PARQUET | TEXTFILE | AVRO | SEQUENCEFILE | RCFILE
  • 5. http://dataera.wordpress.com http://linkedin.com/in/yuechen2 Cloudera Impala – SQL Supports (DDL) Data Definition Language CREATE TABLE Statement usage: CREATE EXTERNAL TABLE tab1 ( id INT, col_1 BOOLEAN, col_2 DOUBLE, col_3 TIMESTAMP ) ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' LOCATION '/user/cloudera/sample_data/tab1'; CREATE TABLE tab3 ( id INT, col_1 BOOLEAN, col_2 DOUBLE, month INT, day INT ) ROW FORMAT DELIMITED FIELDS TERMINATED BY ',‘[STORED AS file_format] ; file_format: PARQUET | TEXTFILE | AVRO | SEQUENCEFILE | RCFILE
  • 6. http://dataera.wordpress.com http://linkedin.com/in/yuechen2 Cloudera Impala – SQL Supports (DDL) Data Definition Language CREATE VIEW Statement usage: create view v1 as select * from t1; create view v2 as select c1, c3, c7 from t1; create view v3 as select c1, cast(c3 as string) c3, concat(c4,c5) c5, trim(c6) c6, "Constant" c8 from t1; create view v4 as select t1.c1, t2.c2 from t1 join t2 on t1.id = t2.id; create view some_db.v5 as select * from some_other_db.t1;
  • 7. http://dataera.wordpress.com http://linkedin.com/in/yuechen2 Cloudera Impala – SQL Supports (DDL) Data Definition Language ALTER TABLE Statement usage: create database d1; create database d2; create database d3; use d1; create table mobile (x int); use d2; -- Move table from another database to the current one. alter table d1.mobile rename to mobile; use d1; alter table d2.mobile rename to d3.mobile; -- Move table from one database to another. create table p1 (s string) partitioned by (month int, day int); alter table p1 partition (month=1, day=1) set location ‘/usr/external_data/new_years_day'
  • 8. http://dataera.wordpress.com http://linkedin.com/in/yuechen2 Cloudera Impala – SQL Supports (DDL) Data Definition Language ALTER VIEW Statement usage: create table t1 (x int, y int, s string); create table t2 like t1; create view v1 as select * from t1; alter view v1 as select * from t2;
  • 9. http://dataera.wordpress.com http://linkedin.com/in/yuechen2 Cloudera Impala – SQL Supports (DDL) Data Definition Language Compute Stats Statement usage: show table stats t1; show column stats t1; compute stats t1;
  • 10. http://dataera.wordpress.com http://linkedin.com/in/yuechen2 Cloudera Impala – SQL Supports (DML) DML Statements Impala supports data manipulation (DML) statements similar to the DML component of HiveQL.
  • 11. http://dataera.wordpress.com http://linkedin.com/in/yuechen2 Cloudera Impala – SQL Supports (DML) DML Statements  INSERT Statement  LOAD DATA Statement
  • 12. http://dataera.wordpress.com http://linkedin.com/in/yuechen2 Cloudera Impala – SQL Supports (DML) DML Statements  INSERT Statement Impala supports inserting into tables and partitions that you create with the Impala CREATE TABLE statement, or pre-defined tables and partitions created through Hive.
  • 13. http://dataera.wordpress.com http://linkedin.com/in/yuechen2 Cloudera Impala – SQL Supports (DML) DML Insert Statements INSERT INTO to append data to a table. INSERT OVERWRITE to replace the data in a table. Copy data from another table using SELECT query. An optional with clause before the INSERT keyword, to define a subquery referenced in the SELECT portion. Create one or more new rows using constant expressions through VALUES clause. Specify the names or order of columns to be inserted, different than the columns of the table being queried by the INSERT statement.
  • 14. http://dataera.wordpress.com http://linkedin.com/in/yuechen2 Cloudera Impala – SQL Supports (DML) DML Insert Statements Eg: insert into table text_table select * from default.tab1 Eg: insert overwrite table parquet_table select * from default.tab1 Eg: insert into val_test_1 values (100, 99.9/10, 'abc', true, now()); Eg: insert overwrite val_test_2 values (1, 'a'), (2, 'b'), (-1,'xyzzy'); Eg:CREATE TABLE rc_table ( id INT, col_1 BOOLEAN, col_2 DOUBLE, col_3 TIMESTAMP ) STORED AS RCFILE; insert into table rc_table select * from default.tab1; Remote error Backend 0:RC_FILE not implemented.
  • 15. http://dataera.wordpress.com http://linkedin.com/in/yuechen2 Cloudera Impala – SQL Supports (DML) DML Insert Statements Eg: insert into table text_table select * from default.tab1 Eg: insert overwrite table parquet_table select * from default.tab1 Eg: insert into val_test_1 values (100, 99.9/10, 'abc', true, now()); Eg: insert overwrite val_test_2 values (1, 'a'), (2, 'b'), (-1,'xyzzy'); Eg:CREATE TABLE rc_table ( id INT, col_1 BOOLEAN, col_2 DOUBLE, col_3 TIMESTAMP ) STORED AS RCFILE; insert into table rc_table select * from default.tab1; Remote error Backend 0:RC_FILE not implemented. Note: The above examples show the type of "not implemented" error that you see when attempting to insert data into a table with a file format that Impala currently does not write to
  • 16. http://dataera.wordpress.com http://linkedin.com/in/yuechen2 Cloudera Impala – SQL Supports (DML) DML Insert Statements An optional hint clause immediately before the SELECT keyword, to fine-tune the behavior when doing an INSERT ... SELECT operation into partitioned Parquet tables. The hint keywords are [SHUFFLE] and [NOSHUFFLE], including the square brackets. Inserting into partitioned Parquet tables can be a resource-intensive operation because it potentially involves many files being written to HDFS simultaneously.
  • 17. http://dataera.wordpress.com http://linkedin.com/in/yuechen2 Cloudera Impala – SQL Supports (DML) DML Insert Statements oselect customer.address, state_lookup.state_name from customer join [broadcast] state_lookup on customer.state_id = state_lookup.state_id; •This query joins a large customer table with a small lookup table of less than 100 rows. The right-hand table can be broadcast efficiently to all nodes involved in the join. Thus, you would use the [broadcast] hint to force a broadcast join strategy.
  • 18. http://dataera.wordpress.com http://linkedin.com/in/yuechen2 Cloudera Impala – SQL Supports (DML) DML Insert Statements oselect weather.wind_velocity, geospatial.altitude from weather join [shuffle] geospatial on weather.lat = geospatial.lat and weather.long = geospatial.long; This query joins two large tables of unpredictable size. You might benchmark the query with both kinds of hints and find that it is more efficient to transmit portions of each table to other nodes for processing. Thus, you would use the [shuffle] hint to force a partitioned join strategy.
  • 19. http://dataera.wordpress.com http://linkedin.com/in/yuechen2 Cloudera Impala – SQL Supports (DML) Loading Statements The LOAD DATA statement streamlines the ETL process for an internal Impala table by moving a data file or all the data files in a directory from an HDFS location into the Impala data directory for that table.
  • 20. http://dataera.wordpress.com http://linkedin.com/in/yuechen2 Cloudera Impala – SQL Supports (DML) Loading Statements usage: create table t1 (s string); load data inpath '/user/cloudera/thousand_strings.txt' into table t1; load data inpath '/user/cloudera/ten_strings.txt' overwrite into table t1;
  • 21. http://dataera.wordpress.com http://linkedin.com/in/yuechen2 Cloudera Impala – SQL Supports (DML) Loading Statements Notes:
  • 22. http://dataera.wordpress.com http://linkedin.com/in/yuechen2 Cloudera Impala – SQL Supports (DML) Loading Statements Notes: The loaded data files are moved, not copied, into the Impala data directory.
  • 23. http://dataera.wordpress.com http://linkedin.com/in/yuechen2 Cloudera Impala – SQL Supports (DML) Loading Statements Notes: The loaded data files are moved, not copied, into the Impala data directory. You can specify the HDFS path of a single file to be moved, or the HDFS path of a directory to move all the files inside that directory. You cannot specify any sort of wildcard to take only some of the files from a directory. When loading a directory full of data files, keep all the data files at the top level, with no nested directories underneath.
  • 24. http://dataera.wordpress.com http://linkedin.com/in/yuechen2 Cloudera Impala – SQL Supports (DML) Loading Statements Notes: The loaded data files are moved, not copied, into the Impala data directory. You can specify the HDFS path of a single file to be moved, or the HDFS path of a directory to move all the files inside that directory. You cannot specify any sort of wildcard to take only some of the files from a directory. When loading a directory full of data files, keep all the data files at the top level, with no nested directories underneath. Currently, the Impala LOAD DATA statement only imports files from HDFS, not from the local file system.
  • 25. http://dataera.wordpress.com http://linkedin.com/in/yuechen2 Cloudera Impala – SQL Supports (ISL) Usage: REFRESH table_name Notes: o Use the REFRESH statement to load the latest metastore metadata and block location data for a particular table in these scenarios: oAfter loading new data files into the HDFS data directory for the table. (Once you have set up an ETL pipeline to bring data into Impala on a regular basis, this is typically the most frequent reason why metadata needs to be refreshed.) oAfter issuing ALTER TABLE, INSERT, LOAD DATA, or other table-modifying SQL statement in Hive
  • 26. http://dataera.wordpress.com http://linkedin.com/in/yuechen2 Cloudera Impala – SQL Supports (ISL) Usage: INVALIDATE METADATA [table_name] Notes: oA metadata update for an impalad instance is required if: oA metadata change occurs. oand the change is made from another impalad instance in your cluster, or through Hive. oand the change is made to a database to which clients such as the Impala shell or ODBC directly connect.
  • 27. http://dataera.wordpress.com http://linkedin.com/in/yuechen2 Cloudera Impala – SQL Supports (ISL) Usage: Show Statements: SHOW DATABASES [[LIKE] 'pattern'] SHOW SCHEMAS [[LIKE] 'pattern'] - an alias for SHOW DATABASES SHOW TABLES [IN database_name] [[LIKE] 'pattern'] SHOW [AGGREGATE] FUNCTIONS [IN database_name] [[LIKE] 'pattern'] SHOW CREATE TABLE [database_name].table_name SHOW TABLE STATS [database_name.]table_name SHOW COLUMN STATS [database_name.]table_name SHOW PARTITIONS [database_name.]table_name
  • 28. http://dataera.wordpress.com http://linkedin.com/in/yuechen2 Cloudera Impala – SQL Supports (DML) Impala does not support the following SQL features Non-scalar data types such as maps, arrays, structs. Extensibility mechanisms such as TRANSFORM, custom file formats. XML and JSON functions. Certain aggregate functions from HiveQL: variance,var_pop,var_samp,stddev_pop,stddev_samp,covar_pop,covar_samp,corr,percentile,percentile_approx,histogram_numeric,collect_set. Sampling. Lateral views. Multiple DISTINCT clauses per query.
  • 29. http://dataera.wordpress.com http://linkedin.com/in/yuechen2 Cloudera Impala – SQL Supports (DML) Impala does not currently support these HiveQL statements: ANALYZE TABLE (the Impala equivalent is COMPUTE STATS) DESCRIBE COLUMN DESCRIBE DATABASE EXPORT TABLE IMPORT TABLE SHOW PARTITIONS SHOW TABLE EXTENDED SHOW INDEXES SHOW COLUMNS
  • 30. http://dataera.wordpress.com http://linkedin.com/in/yuechen2 References Cloudera Impala official documentation and slides http://www.cloudera.com/content/cloudera-content/cloudera- docs/Impala/latest/Installing-and-Using-Impala/ciiu_langref_sql.html