mirror of
https://github.com/apache/impala.git
synced 2025-12-30 12:02:10 -05:00
IMPALA-1033: Remove SOURCE keyword; very common identifier
The SOURCE keyword was introduced for DATA SOURCE ddl commands, but it is also a very common identifier. This removes the SOURCE and SOURCES keywords and instead uses DATASOURCE and DATASOURCES. Change-Id: Ic6c2897d1e23efa169aa8787752fe4aa2bb125d5 Reviewed-on: http://gerrit.ent.cloudera.com:8080/2895 Reviewed-by: Matthew Jacobs <mj@cloudera.com> Tested-by: jenkins (cherry picked from commit 267c13f9b46d249bfd1b8711fd3fadf6853dc1ef)
This commit is contained in:
9
testdata/bin/create-data-source-table.sql
vendored
9
testdata/bin/create-data-source-table.sql
vendored
@@ -16,8 +16,8 @@
|
||||
|
||||
USE functional;
|
||||
|
||||
DROP DATA SOURCE IF EXISTS AllTypesDataSource;
|
||||
CREATE DATA SOURCE AllTypesDataSource
|
||||
DROP DATASOURCE IF EXISTS AllTypesDataSource;
|
||||
CREATE DATASOURCE AllTypesDataSource
|
||||
LOCATION '/test-warehouse/data-sources/test-data-source.jar'
|
||||
CLASS 'com.cloudera.impala.extdatasource.AllTypesDataSource'
|
||||
API_VERSION 'V1';
|
||||
@@ -34,8 +34,9 @@ CREATE TABLE alltypes_datasource (
|
||||
double_col DOUBLE,
|
||||
timestamp_col TIMESTAMP,
|
||||
string_col STRING)
|
||||
PRODUCED BY DATA SOURCE AllTypesDataSource("TestInitString");
|
||||
PRODUCED BY DATASOURCE AllTypesDataSource("TestInitString");
|
||||
|
||||
-- TODO: Remove table and move decimal cols into alltypes_datasource
|
||||
DROP TABLE IF EXISTS decimal_datasource;
|
||||
CREATE TABLE decimal_datasource (
|
||||
d1 DECIMAL(9,0),
|
||||
@@ -43,4 +44,4 @@ CREATE TABLE decimal_datasource (
|
||||
d3 DECIMAL(20,10),
|
||||
d4 DECIMAL(38,37),
|
||||
d5 DECIMAL(10,5))
|
||||
PRODUCED BY DATA SOURCE AllTypesDataSource;
|
||||
PRODUCED BY DATASOURCE AllTypesDataSource;
|
||||
|
||||
Reference in New Issue
Block a user